AI Emotion
Introduction
The Lettria API can identify and extract emotion at the sentence level, and classify it according to the emotion conveyed, using just AI-based algorithms.
Format
A comprehensive list of emotions can be found here.
Key | Type | Description |
---|---|---|
sentence | Emotion [ ] | Sentence emotion |
subsentence | Emotion [ ] [ ] | Subsentence emotion |
Example
{ "sentence": [ { "type": "realization", "value": 1 }, { "type": "remorse", "value": 1 } ], "subsentence": [ [{ "type": "realization", "value": 1 }], [{ "type": "remorse", "value": 1 }] ] }
Emotion Format
Key | Type | Description |
---|---|---|
type | String | Emotion type |
value | Number | Emotion value |
Emotion Example
{ "type": "admiration", "value": 1 }