Sentiment Analysis
Uses the Sentiment - POST API to analyze the sentiment of a text and return a sentiment prediction, as well as sentiment scores for each sentiment class (Positive, Negative, and Neutral) for the document and each sentence within it.
Options
- Text: The text to be analyzed
- Type:
System.String - Required
- Type:
Output
- Value: Returns SentimentAnalysisModel object
- Type:
ArenaRobotics.Domain.Entities.SentimentAnalysisModel - Required
- Type:
Details
-
The AI has a text limit of 4096 tokens. It will give an error if the limit is exceeded.
-
Output:
SentimentAnalysisModelobject has two properties:-
BestModelPrediction: Returns a string representing one of the sentiment states:PositiveNegativeNeutral
-
BestModelPredictionProbability: Returns the probability (as a decimal) of the predicted sentiment.
-