Skip to content

SentimentResponse

Source code in docs_src/capo_lex_runtime_service/types/sentiment_response.py
class SentimentResponse(TypedDict, closed=True):
    sentiment_label: NotRequired[
        "capo_lex_runtime_service.types.sentiment_label.SentimentLabel"
    ]
    """<p>The inferred sentiment that Amazon Comprehend has the highest confidence in.</p>"""
    sentiment_score: NotRequired[
        "capo_lex_runtime_service.types.sentiment_score.SentimentScore"
    ]
    """<p>The likelihood that the sentiment was correctly inferred.</p>"""

sentiment_label instance-attribute

sentiment_label: NotRequired[SentimentLabel]

The inferred sentiment that Amazon Comprehend has the highest confidence in.

sentiment_score instance-attribute

sentiment_score: NotRequired[SentimentScore]

The likelihood that the sentiment was correctly inferred.