Text Emotion Analysis
The Emotion Analysis model will help you understand and interpret emotions in a conversation or text. It is designed to understand human conversation in the form of free text and is designed after the emotion wheel.
Emotion Types
Types of Emotions detected by enabling this model configuration in the Speech Analytics API:
Admiration
Amusement
Anger
Annoyance
Approval
Caring
Confusion
Curiosity
Desire
Disappointment
Disapproval
Disgust
Embarrassment
Excitement
Fear
Gratitude
Grief
Joy
Love
Nervousness
Optimism
Pride
Realization
Relief
Remorse
Sadness
Surprise
Neutral
API Request
Returns the predicted emotion for a given sentence
POST
https://api.marsview.ai/text/emotion/get_emotion
Query Parameters
Name | Type | Description |
---|---|---|
jwtToken* | String | Marsview api access token. You can generate it here: https://docs.marsview.ai/speech-analytics-api/authentication |
sentence* | String | The sentence you want to detect emotion |
userId* | String | Your Marsview user ID |
Example Curl Request
Shown below is a code snippet to send a sample request to the emotion analysis
Example Response
Shown below is a sample JSON response from the above request.
Response Object
Field | Description |
---|---|
| The sentence / phrase for which the emotion is predicted |
| The emotion labels identified by the models |
| Confidence of the predicted emotion |
| The predicted emotion |
Last updated