public class EnrichmentOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
EnrichmentOptions.Builder
Builder.
|
Modifier and Type | Method and Description |
---|---|
String |
classifierId()
Gets the classifierId.
|
Double |
confidenceThreshold()
Gets the confidenceThreshold.
|
String |
entityType()
Gets the entityType.
|
WebhookHeader |
headers()
Gets the headers.
|
List<String> |
languages()
Gets the languages.
|
String |
locationEncoding()
Gets the locationEncoding.
|
String |
modelId()
Gets the modelId.
|
EnrichmentOptions.Builder |
newBuilder()
New builder.
|
String |
regularExpression()
Gets the regularExpression.
|
String |
resultField()
Gets the resultField.
|
String |
secret()
Gets the secret.
|
Long |
topK()
Gets the topK.
|
String |
url()
Gets the url.
|
String |
version()
Gets the version.
|
public EnrichmentOptions.Builder newBuilder()
public List<String> languages()
An array of supported languages for this enrichment. When creating an enrichment, only specify a language that is used by the model or in the dictionary. Required when **type** is `dictionary`. Optional when **type** is `rule_based`. Not valid when creating any other type of enrichment.
public String entityType()
The name of the entity type. This value is used as the field name in the index. Required when **type** is `dictionary` or `regular_expression`. Not valid when creating any other type of enrichment.
public String regularExpression()
The regular expression to apply for this enrichment. Required when **type** is `regular_expression`. Not valid when creating any other type of enrichment.
public String resultField()
The name of the result document field that this enrichment creates. Required when **type** is `rule_based` or `classifier`. Not valid when creating any other type of enrichment.
public String classifierId()
A unique identifier of the document classifier. Required when **type** is `classifier`. Not valid when creating any other type of enrichment.
public String modelId()
A unique identifier of the document classifier model. Required when **type** is `classifier`. Not valid when creating any other type of enrichment.
public Double confidenceThreshold()
Specifies a threshold. Only classes with evaluation confidence scores that are higher than the specified threshold are included in the output. Optional when **type** is `classifier`. Not valid when creating any other type of enrichment.
public Long topK()
Evaluates only the classes that fall in the top set of results when ranked by confidence. For example, if set to `5`, then the top five classes for each document are evaluated. If set to 0, the **confidence_threshold** is used to determine the predicted classes. Optional when **type** is `classifier`. Not valid when creating any other type of enrichment.
public String url()
A URL that uses the SSL protocol (begins with https) for the webhook. Required when type is `webhook`. Not valid when creating any other type of enrichment.
public String version()
The Discovery API version that allows to distinguish the schema. The version is specified in the `yyyy-mm-dd` format. Optional when `type` is `webhook`. Not valid when creating any other type of enrichment.
public String secret()
A private key can be included in the request to authenticate with the external service. The maximum length is 1,024 characters. Optional when `type` is `webhook`. Not valid when creating any other type of enrichment.
public WebhookHeader headers()
An array of headers to pass with the HTTP request. Optional when `type` is `webhook`. Not valid when creating any other type of enrichment.
public String locationEncoding()
Discovery calculates offsets of the text's location with this encoding type in documents. Use the same location encoding type in both Discovery and external enrichment for a document.
These encoding types are supported: `utf-8`, `utf-16`, and `utf-32`. Optional when `type` is `webhook`. Not valid when creating any other type of enrichment.
Copyright © 2024 IBM Cloud. All rights reserved.