TargetedSentimentMention
¶
Source code in docs_src/capo_comprehend/types/targeted_sentiment_mention.py
begin_offset
instance-attribute
¶
begin_offset: NotRequired[Integer]
The offset into the document text where the mention begins.
end_offset
instance-attribute
¶
end_offset: NotRequired[Integer]
The offset into the document text where the mention ends.
group_score
instance-attribute
¶
group_score: NotRequired[Float]
The confidence that all the entities mentioned in the group relate to the same entity.
mention_sentiment
instance-attribute
¶
mention_sentiment: NotRequired[MentionSentiment]
Contains the sentiment and sentiment score for the mention.
score
instance-attribute
¶
score: NotRequired[Float]
Model confidence that the entity is relevant. Value range is zero to one, where one is highest confidence.
text
instance-attribute
¶
text: NotRequired[String]
The text in the document that identifies the entity.
type
instance-attribute
¶
type: NotRequired[TargetedSentimentEntityType]
The type of the entity. Amazon Comprehend supports a variety of entity types.