Class EnrichmentOptions

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v2.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
A object containing options for the current enrichment.
  • Method Details

    • newBuilder

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

      public List<String> languages()
      Gets the languages.

      An array of supported languages for this enrichment.

      Returns:
      the languages
    • entityType

      public String entityType()
      Gets the entityType.

      The type of entity. Required when creating `dictionary` and `regular_expression` **type** enrichment. Not valid when creating any other type of enrichment.

      Returns:
      the entityType
    • regularExpression

      public String regularExpression()
      Gets the regularExpression.

      The regular expression to apply for this enrichment. Required only when the **type** of enrichment being created is a `regular_expression`. Not valid when creating any other type of enrichment.

      Returns:
      the regularExpression
    • resultField

      public String resultField()
      Gets the resultField.

      The name of the result document field that this enrichment creates. Required only when the enrichment **type** is `rule_based`. Not valid when creating any other type of enrichment.

      Returns:
      the resultField