public static class EnrichmentOptions.Builder extends Object
| Constructor and Description |
|---|
Builder()
Instantiates a new builder.
|
| Modifier and Type | Method and Description |
|---|---|
EnrichmentOptions.Builder |
addLanguages(String languages)
Adds an languages to languages.
|
EnrichmentOptions |
build()
Builds a EnrichmentOptions.
|
EnrichmentOptions.Builder |
classifierId(String classifierId)
Set the classifierId.
|
EnrichmentOptions.Builder |
confidenceThreshold(Double confidenceThreshold)
Set the confidenceThreshold.
|
EnrichmentOptions.Builder |
entityType(String entityType)
Set the entityType.
|
EnrichmentOptions.Builder |
languages(List<String> languages)
Set the languages.
|
EnrichmentOptions.Builder |
modelId(String modelId)
Set the modelId.
|
EnrichmentOptions.Builder |
regularExpression(String regularExpression)
Set the regularExpression.
|
EnrichmentOptions.Builder |
resultField(String resultField)
Set the resultField.
|
EnrichmentOptions.Builder |
topK(long topK)
Set the topK.
|
public EnrichmentOptions build()
public EnrichmentOptions.Builder addLanguages(String languages)
languages - the new languagespublic EnrichmentOptions.Builder languages(List<String> languages)
languages - the languagespublic EnrichmentOptions.Builder entityType(String entityType)
entityType - the entityTypepublic EnrichmentOptions.Builder regularExpression(String regularExpression)
regularExpression - the regularExpressionpublic EnrichmentOptions.Builder resultField(String resultField)
resultField - the resultFieldpublic EnrichmentOptions.Builder classifierId(String classifierId)
classifierId - the classifierIdpublic EnrichmentOptions.Builder modelId(String modelId)
modelId - the modelIdpublic EnrichmentOptions.Builder confidenceThreshold(Double confidenceThreshold)
confidenceThreshold - the confidenceThresholdpublic EnrichmentOptions.Builder topK(long topK)
topK - the topKCopyright © 2023 IBM Cloud. All rights reserved.