Package ch.privately.owas.nlp
Class EmotionResult
java.lang.Object
ch.privately.owas.nlp.EmotionResult
Representation of an emotion classification result.
The supported emotions are:
"anger", "fear", "joy", "love", "neutral", "sadness" and "surprise"
.
-
Method Summary
-
Method Details
-
getEmotionScoreMap
- Returns:
- A mapping of emotion to score, represented as probabilities.
-
highestRankedEmotion
- Returns:
- The emotion with the highest score.
-
toString
-
equals
-
hashCode
public int hashCode()
-