Class EmotionResult
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 Summary
Constructors Constructor Description EmotionResult()
-
Method Summary
Modifier and Type Method Description DocumentEmotionResults
getDocument()
Gets the document.List<TargetedEmotionResults>
getTargets()
Gets the targets.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
EmotionResult
public EmotionResult()
-
-
Method Details
-
getDocument
Gets the document.Emotion results for the document as a whole.
- Returns:
- the document
-
getTargets
Gets the targets.Emotion results for specified targets.
- Returns:
- the targets
-