public class EnrichmentOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The `elements` enrichment type is deprecated. Use the [Create a project](https://cloud.ibm.com/apidocs/discovery-data#createproject) method of the Discovery v2 API to create a `content_intelligence` project type instead.
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 | Method and Description |
---|---|
NluEnrichmentFeatures |
features()
Gets the features.
|
String |
language()
Gets the language.
|
String |
model()
Deprecated.
this method is deprecated and may be removed in a future release
|
EnrichmentOptions.Builder |
newBuilder()
New builder.
|
public EnrichmentOptions.Builder newBuilder()
public NluEnrichmentFeatures features()
Object containing Natural Language Understanding features to be used.
public 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.
@Deprecated public String model()
The element extraction model to use, which can be `contract` only. The `elements` enrichment is deprecated.
Copyright © 2024 IBM Cloud. All rights reserved.