curl --location --request POST 'http://dev-cn.your-api-server.com/v2/text/emotion_detection' \
--header 'Authorization;' \
--header 'content-type: application/json' \
--data-raw '{
"response_as_dict": true,
"attributes_as_list": false,
"show_original_response": false
}'
{
"nlpcloud": {
"text": "I'm scared",
"items": [
{
"emotion": "Fear",
"emotion_score": 99.74
},
{
"emotion": "Anger",
"emotion_score": 0.12
},
{
"emotion": "Surprise",
"emotion_score": 0.05
},
{
"emotion": "Sadness",
"emotion_score": 0.04
},
{
"emotion": "Joy",
"emotion_score": 0.03
},
{
"emotion": "Love",
"emotion_score": 0.01
}
]
},
"vernai": {
"text": "I'm scared",
"items": [
{
"emotion": "Fear",
"emotion_score": 51
},
{
"emotion": "Sadness",
"emotion_score": 51
},
{
"emotion": "Anger",
"emotion_score": 0
},
{
"emotion": "Love",
"emotion_score": 0
}
]
}
}