Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

TargetedSentimentMention

import type { TargetedSentimentMention } from "https://aws-api.deno.dev/v0.4/services/comprehend.ts?docs=full";

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 | null;
EndOffset?: number | null;
GroupScore?: number | null;
MentionSentiment?: MentionSentiment | null;
Score?: number | null;
Text?: string | null;
}

§Properties

§
BeginOffset?: number | null
[src]

The offset into the document text where the mention begins.

§
EndOffset?: number | null
[src]

The offset into the document text where the mention ends.

§
GroupScore?: number | null
[src]

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

§
MentionSentiment?: MentionSentiment | null
[src]

Contains the sentiment and sentiment score for the mention.

§
Score?: number | null
[src]

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

§
Text?: string | null
[src]

The text in the document that identifies the entity.

§

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