public class EmotionScores
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Field and Description |
---|---|
protected java.lang.Double |
anger |
protected java.lang.Double |
disgust |
protected java.lang.Double |
fear |
protected java.lang.Double |
joy |
protected java.lang.Double |
sadness |
Constructor and Description |
---|
EmotionScores() |
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
getAnger()
Gets the anger.
|
java.lang.Double |
getDisgust()
Gets the disgust.
|
java.lang.Double |
getFear()
Gets the fear.
|
java.lang.Double |
getJoy()
Gets the joy.
|
java.lang.Double |
getSadness()
Gets the sadness.
|
protected java.lang.Double anger
protected java.lang.Double disgust
protected java.lang.Double fear
protected java.lang.Double joy
protected java.lang.Double sadness
public java.lang.Double getAnger()
Anger score from 0 to 1. A higher score means that the text is more likely to convey anger.
public java.lang.Double getDisgust()
Disgust score from 0 to 1. A higher score means that the text is more likely to convey disgust.
public java.lang.Double getFear()
Fear score from 0 to 1. A higher score means that the text is more likely to convey fear.
public java.lang.Double getJoy()
Joy score from 0 to 1. A higher score means that the text is more likely to convey joy.
public java.lang.Double getSadness()
Sadness score from 0 to 1. A higher score means that the text is more likely to convey sadness.