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

Description

Inspects a batch of documents and returns a sentiment analysis for each entity identified in the documents.

For more information about targeted sentiment, see Targeted sentiment.

Synopsis

Creating a Request

data BatchDetectTargetedSentiment Source #

See: newBatchDetectTargetedSentiment smart constructor.

Constructors

BatchDetectTargetedSentiment' 

Fields

  • textList :: Sensitive (NonEmpty (Sensitive Text))

    A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25 documents. The maximum size of each document is 5 KB.

  • languageCode :: LanguageCode

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

Instances

Instances details
ToJSON BatchDetectTargetedSentiment Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectTargetedSentiment

ToHeaders BatchDetectTargetedSentiment Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectTargetedSentiment

ToPath BatchDetectTargetedSentiment Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectTargetedSentiment

ToQuery BatchDetectTargetedSentiment Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectTargetedSentiment

AWSRequest BatchDetectTargetedSentiment Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectTargetedSentiment

Generic BatchDetectTargetedSentiment Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectTargetedSentiment

Associated Types

type Rep BatchDetectTargetedSentiment :: Type -> Type #

Show BatchDetectTargetedSentiment Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectTargetedSentiment

NFData BatchDetectTargetedSentiment Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectTargetedSentiment

Eq BatchDetectTargetedSentiment Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectTargetedSentiment

Hashable BatchDetectTargetedSentiment Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectTargetedSentiment

type AWSResponse BatchDetectTargetedSentiment Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectTargetedSentiment

type Rep BatchDetectTargetedSentiment Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectTargetedSentiment

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

newBatchDetectTargetedSentiment Source #

Create a value of BatchDetectTargetedSentiment 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:textList:BatchDetectTargetedSentiment', batchDetectTargetedSentiment_textList - A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25 documents. The maximum size of each document is 5 KB.

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

Request Lenses

batchDetectTargetedSentiment_textList :: Lens' BatchDetectTargetedSentiment (NonEmpty Text) Source #

A list containing the UTF-8 encoded text of the input documents. The list can contain a maximum of 25 documents. The maximum size of each document is 5 KB.

batchDetectTargetedSentiment_languageCode :: Lens' BatchDetectTargetedSentiment LanguageCode Source #

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

Destructuring the Response

data BatchDetectTargetedSentimentResponse Source #

Constructors

BatchDetectTargetedSentimentResponse' 

Fields

Instances

Instances details
Generic BatchDetectTargetedSentimentResponse Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectTargetedSentiment

Show BatchDetectTargetedSentimentResponse Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectTargetedSentiment

NFData BatchDetectTargetedSentimentResponse Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectTargetedSentiment

Eq BatchDetectTargetedSentimentResponse Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectTargetedSentiment

type Rep BatchDetectTargetedSentimentResponse Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectTargetedSentiment

type Rep BatchDetectTargetedSentimentResponse = D1 ('MetaData "BatchDetectTargetedSentimentResponse" "Amazonka.Comprehend.BatchDetectTargetedSentiment" "amazonka-comprehend-2.0-Ko6GCjAQF2RARapSdPn69F" 'False) (C1 ('MetaCons "BatchDetectTargetedSentimentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "resultList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [BatchDetectTargetedSentimentItemResult]) :*: S1 ('MetaSel ('Just "errorList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [BatchItemError]))))

newBatchDetectTargetedSentimentResponse Source #

Create a value of BatchDetectTargetedSentimentResponse 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:httpStatus:BatchDetectTargetedSentimentResponse', batchDetectTargetedSentimentResponse_httpStatus - The response's http status code.

$sel:resultList:BatchDetectTargetedSentimentResponse', batchDetectTargetedSentimentResponse_resultList - A list of objects containing the results of the operation. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If all of the documents contain an error, the ResultList is empty.

$sel:errorList:BatchDetectTargetedSentimentResponse', batchDetectTargetedSentimentResponse_errorList - List of errors that the operation can return.

Response Lenses

batchDetectTargetedSentimentResponse_resultList :: Lens' BatchDetectTargetedSentimentResponse [BatchDetectTargetedSentimentItemResult] Source #

A list of objects containing the results of the operation. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If all of the documents contain an error, the ResultList is empty.