Information about one mention of an entity. The mention information includes the location of the mention in the text and the sentiment of the mention.

For more information about targeted sentiment, see Targeted sentiment.

interface TargetedSentimentMention {
    BeginOffset?: number;
    EndOffset?: number;
    GroupScore?: number;
    MentionSentiment?: MentionSentiment;
    Score?: number;
    Text?: string;
    Type?: string;
}

Properties

BeginOffset?: number

The offset into the document text where the mention begins.

EndOffset?: number

The offset into the document text where the mention ends.

GroupScore?: number

The confidence that all the entities mentioned in the group relate to the same entity.

MentionSentiment?: MentionSentiment

Contains the sentiment and sentiment score for the mention.

Score?: number

Model confidence that the entity is relevant. Value range is zero to one, where one is highest confidence.

Text?: string

The text in the document that identifies the entity.

Type?: string

The type of the entity. Amazon Comprehend supports a variety of entity types.