Class NluEnrichmentEmotion

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

public class NluEnrichmentEmotion
extends com.ibm.cloud.sdk.core.service.model.GenericModel
An object specifying the emotion detection enrichment and related parameters.
  • Method Details

    • newBuilder

      public NluEnrichmentEmotion.Builder newBuilder()
      New builder.
      Returns:
      a NluEnrichmentEmotion builder
    • document

      public Boolean document()
      Gets the document.

      When `true`, emotion detection is performed on the entire field.

      Returns:
      the document
    • targets

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

      A comma-separated list of target strings that will have any associated emotions detected.

      Returns:
      the targets