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

public class SentimentResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The sentiment of the content.
  • Constructor Details

    • SentimentResult

      public SentimentResult()
  • Method Details

    • getDocument

      public DocumentSentimentResults getDocument()
      Gets the document.

      The document level sentiment.

      Returns:
      the document
    • getTargets

      public List<TargetedSentimentResults> getTargets()
      Gets the targets.

      The targeted sentiment to analyze.

      Returns:
      the targets