Skip to content

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

KeyTypeDescription
typeStringEmotion type
valueNumberEmotion value

Emotion Example

{ "type": "joy", "value": 1 }

Next steps