public class EnrichmentOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
EnrichmentOptions.Builder
Builder.
|
static interface |
EnrichmentOptions.Language
ISO 639-1 code indicating the language to use for the analysis.
|
Modifier and Type | Field and Description |
---|---|
protected NluEnrichmentFeatures |
features |
protected java.lang.String |
language |
protected java.lang.String |
model |
Modifier | Constructor and Description |
---|---|
protected |
EnrichmentOptions(EnrichmentOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
NluEnrichmentFeatures |
features()
Gets the features.
|
java.lang.String |
language()
Gets the language.
|
java.lang.String |
model()
Gets the model.
|
EnrichmentOptions.Builder |
newBuilder()
New builder.
|
protected NluEnrichmentFeatures features
protected java.lang.String language
protected java.lang.String model
protected EnrichmentOptions(EnrichmentOptions.Builder builder)
public EnrichmentOptions.Builder newBuilder()
public NluEnrichmentFeatures features()
Object containing Natural Language Understanding features to be used.
public java.lang.String language()
ISO 639-1 code indicating the language to use for the analysis. This code overrides the automatic language detection performed by the service. Valid codes are `ar` (Arabic), `en` (English), `fr` (French), `de` (German), `it` (Italian), `pt` (Portuguese), `ru` (Russian), `es` (Spanish), and `sv` (Swedish). **Note:** Not all features support all languages, automatic detection is recommended.
public java.lang.String model()
*For use with `elements` enrichments only.* The element extraction model to use. Models available are: `contract`.