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

public class EmotionResult
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The detected anger, disgust, fear, joy, or sadness that is conveyed by the content. Emotion information can be returned for detected entities, keywords, or user-specified target phrases found in the text.
  • Constructor Details

    • EmotionResult

      public EmotionResult()
  • Method Details

    • getDocument

      public DocumentEmotionResults getDocument()
      Gets the document.

      Emotion results for the document as a whole.

      Returns:
      the document
    • getTargets

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

      Emotion results for specified targets.

      Returns:
      the targets