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.DetectTargetedSentiment

Description

Inspects the input text and returns a sentiment analysis for each entity identified in the text.

For more information about targeted sentiment, see Targeted sentiment.

Synopsis

Creating a Request

data DetectTargetedSentiment Source #

See: newDetectTargetedSentiment smart constructor.

Constructors

DetectTargetedSentiment' 

Fields

Instances

Instances details
ToJSON DetectTargetedSentiment Source # 
Instance details

Defined in Amazonka.Comprehend.DetectTargetedSentiment

ToHeaders DetectTargetedSentiment Source # 
Instance details

Defined in Amazonka.Comprehend.DetectTargetedSentiment

ToPath DetectTargetedSentiment Source # 
Instance details

Defined in Amazonka.Comprehend.DetectTargetedSentiment

ToQuery DetectTargetedSentiment Source # 
Instance details

Defined in Amazonka.Comprehend.DetectTargetedSentiment

AWSRequest DetectTargetedSentiment Source # 
Instance details

Defined in Amazonka.Comprehend.DetectTargetedSentiment

Generic DetectTargetedSentiment Source # 
Instance details

Defined in Amazonka.Comprehend.DetectTargetedSentiment

Associated Types

type Rep DetectTargetedSentiment :: Type -> Type #

Show DetectTargetedSentiment Source # 
Instance details

Defined in Amazonka.Comprehend.DetectTargetedSentiment

NFData DetectTargetedSentiment Source # 
Instance details

Defined in Amazonka.Comprehend.DetectTargetedSentiment

Methods

rnf :: DetectTargetedSentiment -> () #

Eq DetectTargetedSentiment Source # 
Instance details

Defined in Amazonka.Comprehend.DetectTargetedSentiment

Hashable DetectTargetedSentiment Source # 
Instance details

Defined in Amazonka.Comprehend.DetectTargetedSentiment

type AWSResponse DetectTargetedSentiment Source # 
Instance details

Defined in Amazonka.Comprehend.DetectTargetedSentiment

type Rep DetectTargetedSentiment Source # 
Instance details

Defined in Amazonka.Comprehend.DetectTargetedSentiment

type Rep DetectTargetedSentiment = D1 ('MetaData "DetectTargetedSentiment" "Amazonka.Comprehend.DetectTargetedSentiment" "amazonka-comprehend-2.0-Ko6GCjAQF2RARapSdPn69F" 'False) (C1 ('MetaCons "DetectTargetedSentiment'" 'PrefixI 'True) (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)) :*: S1 ('MetaSel ('Just "languageCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LanguageCode)))

newDetectTargetedSentiment Source #

Create a value of DetectTargetedSentiment 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:

DetectTargetedSentiment, detectTargetedSentiment_text - A UTF-8 text string. The maximum string length is 5 KB.

DetectTargetedSentiment, detectTargetedSentiment_languageCode - The language of the input documents. Currently, English is the only supported language.

Request Lenses

detectTargetedSentiment_text :: Lens' DetectTargetedSentiment Text Source #

A UTF-8 text string. The maximum string length is 5 KB.

detectTargetedSentiment_languageCode :: Lens' DetectTargetedSentiment LanguageCode Source #

The language of the input documents. Currently, English is the only supported language.

Destructuring the Response

data DetectTargetedSentimentResponse Source #

See: newDetectTargetedSentimentResponse smart constructor.

Constructors

DetectTargetedSentimentResponse' 

Fields

Instances

Instances details
Generic DetectTargetedSentimentResponse Source # 
Instance details

Defined in Amazonka.Comprehend.DetectTargetedSentiment

Associated Types

type Rep DetectTargetedSentimentResponse :: Type -> Type #

Show DetectTargetedSentimentResponse Source # 
Instance details

Defined in Amazonka.Comprehend.DetectTargetedSentiment

NFData DetectTargetedSentimentResponse Source # 
Instance details

Defined in Amazonka.Comprehend.DetectTargetedSentiment

Eq DetectTargetedSentimentResponse Source # 
Instance details

Defined in Amazonka.Comprehend.DetectTargetedSentiment

type Rep DetectTargetedSentimentResponse Source # 
Instance details

Defined in Amazonka.Comprehend.DetectTargetedSentiment

type Rep DetectTargetedSentimentResponse = D1 ('MetaData "DetectTargetedSentimentResponse" "Amazonka.Comprehend.DetectTargetedSentiment" "amazonka-comprehend-2.0-Ko6GCjAQF2RARapSdPn69F" 'False) (C1 ('MetaCons "DetectTargetedSentimentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "entities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TargetedSentimentEntity])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDetectTargetedSentimentResponse Source #

Create a value of DetectTargetedSentimentResponse 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:

DetectTargetedSentimentResponse, detectTargetedSentimentResponse_entities - Targeted sentiment analysis for each of the entities identified in the input text.

$sel:httpStatus:DetectTargetedSentimentResponse', detectTargetedSentimentResponse_httpStatus - The response's http status code.

Response Lenses

detectTargetedSentimentResponse_entities :: Lens' DetectTargetedSentimentResponse (Maybe [TargetedSentimentEntity]) Source #

Targeted sentiment analysis for each of the entities identified in the input text.