Skip to content

TargetedSentimentEntity

Source code in docs_src/capo_comprehend/types/targeted_sentiment_entity.py
class TargetedSentimentEntity(TypedDict, closed=True):
    descriptive_mention_index: NotRequired[
        "capo_comprehend.types.list_of_descriptive_mention_indices.ListOfDescriptiveMentionIndices"
    ]
    """<p>One or more index into the Mentions array that provides the best name for the entity group.</p>"""
    mentions: NotRequired["capo_comprehend.types.list_of_mentions.ListOfMentions"]
    """<p>An array of mentions of the entity in the document. The array represents a co-reference group. See <a href="https://docs.aws.amazon.com/comprehend/latest/dg/how-targeted-sentiment.html#how-targeted-sentiment-values"> Co-reference group</a> for an example. </p>"""

descriptive_mention_index instance-attribute

descriptive_mention_index: NotRequired[ListOfDescriptiveMentionIndices]

One or more index into the Mentions array that provides the best name for the entity group.

mentions instance-attribute

mentions: NotRequired[ListOfMentions]

An array of mentions of the entity in the document. The array represents a co-reference group. See Co-reference group for an example.