Skip to content

SentimentScore

Source code in docs_src/capo_comprehend/types/sentiment_score.py
class SentimentScore(TypedDict, closed=True):
    positive: NotRequired["capo_comprehend.types.float.Float"]
    """<p>The level of confidence that Amazon Comprehend has in the accuracy of its detection of the <code>POSITIVE</code> sentiment.</p>"""
    negative: NotRequired["capo_comprehend.types.float.Float"]
    """<p>The level of confidence that Amazon Comprehend has in the accuracy of its detection of the <code>NEGATIVE</code> sentiment.</p>"""
    neutral: NotRequired["capo_comprehend.types.float.Float"]
    """<p>The level of confidence that Amazon Comprehend has in the accuracy of its detection of the <code>NEUTRAL</code> sentiment.</p>"""
    mixed: NotRequired["capo_comprehend.types.float.Float"]
    """<p>The level of confidence that Amazon Comprehend has in the accuracy of its detection of the <code>MIXED</code> sentiment.</p>"""

mixed instance-attribute

mixed: NotRequired[Float]

The level of confidence that Amazon Comprehend has in the accuracy of its detection of the MIXED sentiment.

negative instance-attribute

negative: NotRequired[Float]

The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEGATIVE sentiment.

neutral instance-attribute

neutral: NotRequired[Float]

The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEUTRAL sentiment.

positive instance-attribute

positive: NotRequired[Float]

The level of confidence that Amazon Comprehend has in the accuracy of its detection of the POSITIVE sentiment.