AssessmentSentiment Class
AssessmentSentiment contains the predicted sentiment, confidence scores and other information about an assessment given about a particular target. For example, in the sentence "The food is good", the assessment of the target 'food' is 'good'.
- Inheritance
-
azure.ai.textanalytics._models.DictMixinAssessmentSentiment
Constructor
AssessmentSentiment(**kwargs)
Variables
- text
- str
The assessment text.
- sentiment
- str
The predicted Sentiment for the assessment. Possible values include 'positive', 'mixed', and 'negative'.
- confidence_scores
- SentimentConfidenceScores
The sentiment confidence score between 0 and 1 for the assessment for 'positive' and 'negative' labels. It's score for 'neutral' will always be 0
- length
- int
The assessment text length. This value depends on the value of the string_index_type parameter set in the original request, which is UnicodeCodePoints by default.
- offset
- int
The assessment text offset from the start of the document. The value depends on the value of the string_index_type parameter set in the original request, which is UnicodeCodePoints by default.
- is_negated
- bool
Whether the value of the assessment is negated. For example, in "The food is not good", the assessment "good" is negated.
Feedback
Submit and view feedback for