Sentiment Analysis Predict Sentiment

POST {{baseUrl}}/api/v1/predict-sentiment

Predicts sentiment for a phrase using the default dataset or the specified dataset. The Sentiment API uses machine learning to generalize from the phrases in the dataset that was created using the API.

Request Body

{"phrase"=>"{{sample-phrase}}"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring
Authorizationstring

RESPONSES

status: OK

{"datasetId":"65a07e9c-9c0a-4a10-8649-84dd8a47da72","sentiment":"POSITIVE","sentimentPredicted":true}