Skip to content

DetectSentimentResponse

Source code in docs_src/capo_comprehend/types/detect_sentiment_response.py
class DetectSentimentResponse(TypedDict, closed=True):
    sentiment: NotRequired["capo_comprehend.types.sentiment_type.SentimentType"]
    """<p>The inferred sentiment that Amazon Comprehend has the highest level of confidence in.</p>"""
    sentiment_score: NotRequired["capo_comprehend.types.sentiment_score.SentimentScore"]
    """<p>An object that lists the sentiments, and their corresponding confidence levels.</p>"""

sentiment instance-attribute

sentiment: NotRequired[SentimentType]

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

sentiment_score instance-attribute

sentiment_score: NotRequired[SentimentScore]

An object that lists the sentiments, and their corresponding confidence levels.