Emotion
Introduction
The Lettria API can identify and extract emotion from text data at the sentence level, and automatically classify it according to the emotion it conveys.
Format
Emotions are received inside an Array()
A comprehensive list of emotions can be found here.
Example
[ { "type": "joy", "value": 1 }, { "type": "remorse", "value": 1 } ]
Emotion
Emotion Format
Key | Type | Description |
---|---|---|
type | String | Emotion type |
value | Number | Emotion value |
Emotion Example
{ "type": "joy", "value": 1 }