Get Sentiments
post
/omlmod/v1/cognitive-text/sentiment
A cognitive-text endpoint that returns the sentiment for the given list of text strings. A sentiment is an enumerated type with values (positive, neutral, negative).
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Response
Supported Media Types
- application/json
200 Response
Sentiment predictions and the associated text strings.
Nested Schema : SentimentResult
Type:
Show Source
object-
confidence(required): number
(double)
-
sentiment(required): string
Allowed Values:
[ "positive", "neutral", "negative" ]
400 Response
Bad request.
401 Response
Unauthorized.
404 Response
Resource not found.
500 Response
Unexpected error.