Class EnrichmentOptions

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v1.model.EnrichmentOptions
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class EnrichmentOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Options which are specific to a particular enrichment.
  • Method Details

    • newBuilder

      public EnrichmentOptions.Builder newBuilder()
      New builder.
      Returns:
      a EnrichmentOptions builder
    • features

      public NluEnrichmentFeatures features()
      Gets the features.

      Object containing Natural Language Understanding features to be used.

      Returns:
      the features
    • language

      public String language()
      Gets the 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.

      Returns:
      the language
    • model

      public String model()
      Gets the model.

      *For use with `elements` enrichments only.* The element extraction model to use. Models available are: `contract`.

      Returns:
      the model