Class TargetedEmotionResults

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

public class TargetedEmotionResults
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Emotion results for a specified target.
  • Constructor Details

    • TargetedEmotionResults

      public TargetedEmotionResults()
  • Method Details

    • getText

      public String getText()
      Gets the text.

      Targeted text.

      Returns:
      the text
    • getEmotion

      public EmotionScores getEmotion()
      Gets the emotion.

      The emotion results for the target.

      Returns:
      the emotion