Text Sentiment Api
Text Sentiment allow you to predict the sentiment of text either data is POSITIVE
, NEGATIVE
, NEUTRAL
. You can use this result to predict user reviews and many other task on you server side.
Languages
Currently we only support these languages by default Arabic
, English
, French
, Hindi
, Spanish
, German
, italian
, Portuguese
Endpoint
POST - /ml/text-sentiment
Parameters
text
- required
- Type:
String text is required
- Details: pass the string text you want to analyze for sentiment.
Example
Curl Request
curl --form "text=`i like the oyyi website and apis` $BASE_ROUTE/ml/object-detection
Response
{
"data": [
{
"label": "positive",
"score": 0.5482088327407837
}
],
"status": "done"
}