Skip to main content

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

Output

  • Value: Returns SentimentAnalysisModel object
    • Type: ArenaRobotics.Domain.Entities.SentimentAnalysisModel
    • Required

Details

  • The AI has a text limit of 4096 tokens. It will give an error if the limit is exceeded.

  • Output: SentimentAnalysisModel object has two properties:

    • BestModelPrediction: Returns a string representing one of the sentiment states:

      • Positive
      • Negative
      • Neutral
    • BestModelPredictionProbability: Returns the probability (as a decimal) of the predicted sentiment.