Skip to content

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.

KeyTypeDescription
sentenceEmotion [ ]Sentence emotion
subsentenceEmotion [ ] [ ]Subsentence emotion

Example

{
	"sentence": [
		{ "type": "realization", "value": 1 },
		{ "type": "remorse", "value": 1 }
	],
	"subsentence": [
		[{ "type": "realization", "value": 1 }],
		[{ "type": "remorse", "value": 1 }]
	]
}

Emotion Format

KeyTypeDescription
typeStringEmotion type
valueNumberEmotion value

Emotion Example

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

Next steps