Sentiment analysis
This method makes it possible to analyze a text, identifying its general sentiment, through a REST web service.
POST /apigateway/se/rest/v1/copilot/sentiment-analysis
Supported attributes:
Request body parameter | Type | Required | Description |
---|---|---|---|
prompt | String | Yes | Text to be analyzed |
Request example:
{
"prompt": "string"
}
Response example:
200 OK
{
"success": true,
"total": 1,
"results": [
{
"positive_score": 0.0,
"negative_score": 0.0,
"neutral_score": 0.0,
"sentiment": ""
}
]
}