Skip to content

BatchDetectSentimentItemResult

Source code in docs_src/capo_comprehend/types/batch_detect_sentiment_item_result.py
class BatchDetectSentimentItemResult(TypedDict, closed=True):
    index: NotRequired["capo_comprehend.types.integer.Integer"]
    """<p>The zero-based index of the document in the input list.</p>"""
    sentiment: NotRequired["capo_comprehend.types.sentiment_type.SentimentType"]
    """<p>The sentiment detected in the document.</p>"""
    sentiment_score: NotRequired["capo_comprehend.types.sentiment_score.SentimentScore"]
    """<p>The level of confidence that Amazon Comprehend has in the accuracy of its sentiment detection.</p>"""

index instance-attribute

index: NotRequired[Integer]

The zero-based index of the document in the input list.

sentiment instance-attribute

sentiment: NotRequired[SentimentType]

The sentiment detected in the document.

sentiment_score instance-attribute

sentiment_score: NotRequired[SentimentScore]

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