Class NluEnrichmentSentiment

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

public class NluEnrichmentSentiment
extends com.ibm.cloud.sdk.core.service.model.GenericModel
An object specifying the sentiment extraction enrichment and related parameters.
  • Method Details

    • newBuilder

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

      public Boolean document()
      Gets the document.

      When `true`, sentiment analysis 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 sentiment analyzed.

      Returns:
      the targets