amazonka-comprehend-2.0: Amazon Comprehend SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Comprehend.Types.TargetedSentimentMention

Description

 
Synopsis

Documentation

data TargetedSentimentMention Source #

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.

See: newTargetedSentimentMention smart constructor.

Constructors

TargetedSentimentMention' 

Fields

Instances

Instances details
FromJSON TargetedSentimentMention Source # 
Instance details

Defined in Amazonka.Comprehend.Types.TargetedSentimentMention

Generic TargetedSentimentMention Source # 
Instance details

Defined in Amazonka.Comprehend.Types.TargetedSentimentMention

Associated Types

type Rep TargetedSentimentMention :: Type -> Type #

Read TargetedSentimentMention Source # 
Instance details

Defined in Amazonka.Comprehend.Types.TargetedSentimentMention

Show TargetedSentimentMention Source # 
Instance details

Defined in Amazonka.Comprehend.Types.TargetedSentimentMention

NFData TargetedSentimentMention Source # 
Instance details

Defined in Amazonka.Comprehend.Types.TargetedSentimentMention

Eq TargetedSentimentMention Source # 
Instance details

Defined in Amazonka.Comprehend.Types.TargetedSentimentMention

Hashable TargetedSentimentMention Source # 
Instance details

Defined in Amazonka.Comprehend.Types.TargetedSentimentMention

type Rep TargetedSentimentMention Source # 
Instance details

Defined in Amazonka.Comprehend.Types.TargetedSentimentMention

newTargetedSentimentMention :: TargetedSentimentMention Source #

Create a value of TargetedSentimentMention with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:beginOffset:TargetedSentimentMention', targetedSentimentMention_beginOffset - The offset into the document text where the mention begins.

$sel:endOffset:TargetedSentimentMention', targetedSentimentMention_endOffset - The offset into the document text where the mention ends.

$sel:groupScore:TargetedSentimentMention', targetedSentimentMention_groupScore - The confidence that all the entities mentioned in the group relate to the same entity.

$sel:mentionSentiment:TargetedSentimentMention', targetedSentimentMention_mentionSentiment - Contains the sentiment and sentiment score for the mention.

$sel:score:TargetedSentimentMention', targetedSentimentMention_score - Model confidence that the entity is relevant. Value range is zero to one, where one is highest confidence.

$sel:text:TargetedSentimentMention', targetedSentimentMention_text - The text in the document that identifies the entity.

$sel:type':TargetedSentimentMention', targetedSentimentMention_type - The type of the entity. Amazon Comprehend supports a variety of entity types.

targetedSentimentMention_beginOffset :: Lens' TargetedSentimentMention (Maybe Int) Source #

The offset into the document text where the mention begins.

targetedSentimentMention_endOffset :: Lens' TargetedSentimentMention (Maybe Int) Source #

The offset into the document text where the mention ends.

targetedSentimentMention_groupScore :: Lens' TargetedSentimentMention (Maybe Double) Source #

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

targetedSentimentMention_mentionSentiment :: Lens' TargetedSentimentMention (Maybe MentionSentiment) Source #

Contains the sentiment and sentiment score for the mention.

targetedSentimentMention_score :: Lens' TargetedSentimentMention (Maybe Double) Source #

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

targetedSentimentMention_text :: Lens' TargetedSentimentMention (Maybe Text) Source #

The text in the document that identifies the entity.

targetedSentimentMention_type :: Lens' TargetedSentimentMention (Maybe TargetedSentimentEntityType) Source #

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