Class EmotionScores
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.natural_language_understanding.v1.model.EmotionScores
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class EmotionScores
extends com.ibm.cloud.sdk.core.service.model.GenericModel
EmotionScores.
-
Constructor Summary
Constructors Constructor Description EmotionScores()
-
Method Summary
Modifier and Type Method Description Double
getAnger()
Gets the anger.Double
getDisgust()
Gets the disgust.Double
getFear()
Gets the fear.Double
getJoy()
Gets the joy.Double
getSadness()
Gets the sadness.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
EmotionScores
public EmotionScores()
-
-
Method Details
-
getAnger
Gets the anger.Anger score from 0 to 1. A higher score means that the text is more likely to convey anger.
- Returns:
- the anger
-
getDisgust
Gets the disgust.Disgust score from 0 to 1. A higher score means that the text is more likely to convey disgust.
- Returns:
- the disgust
-
getFear
Gets the fear.Fear score from 0 to 1. A higher score means that the text is more likely to convey fear.
- Returns:
- the fear
-
getJoy
Gets the joy.Joy score from 0 to 1. A higher score means that the text is more likely to convey joy.
- Returns:
- the joy
-
getSadness
Gets the sadness.Sadness score from 0 to 1. A higher score means that the text is more likely to convey sadness.
- Returns:
- the sadness
-