libZSservicesZSamazonka-comprehendZSamazonka-comprehend
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Comprehend.BatchDetectDominantLanguage

Description

Determines the dominant language of the input text for a batch of documents. For a list of languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages.

Synopsis

Creating a Request

data BatchDetectDominantLanguage Source #

See: newBatchDetectDominantLanguage smart constructor.

Constructors

BatchDetectDominantLanguage' 

Fields

  • textList :: Sensitive [Sensitive Text]

    A list containing the text of the input documents. The list can contain a maximum of 25 documents. Each document should contain at least 20 characters and must contain fewer than 5,000 bytes of UTF-8 encoded characters.

Instances

Instances details
Eq BatchDetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectDominantLanguage

Show BatchDetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectDominantLanguage

Generic BatchDetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectDominantLanguage

Associated Types

type Rep BatchDetectDominantLanguage :: Type -> Type #

NFData BatchDetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectDominantLanguage

Hashable BatchDetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectDominantLanguage

ToJSON BatchDetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectDominantLanguage

AWSRequest BatchDetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectDominantLanguage

ToHeaders BatchDetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectDominantLanguage

ToPath BatchDetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectDominantLanguage

ToQuery BatchDetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectDominantLanguage

type Rep BatchDetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectDominantLanguage

type Rep BatchDetectDominantLanguage = D1 ('MetaData "BatchDetectDominantLanguage" "Amazonka.Comprehend.BatchDetectDominantLanguage" "libZSservicesZSamazonka-comprehendZSamazonka-comprehend" 'False) (C1 ('MetaCons "BatchDetectDominantLanguage'" 'PrefixI 'True) (S1 ('MetaSel ('Just "textList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive [Sensitive Text]))))
type AWSResponse BatchDetectDominantLanguage Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectDominantLanguage

newBatchDetectDominantLanguage :: BatchDetectDominantLanguage Source #

Create a value of BatchDetectDominantLanguage 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:BatchDetectDominantLanguage', batchDetectDominantLanguage_textList - A list containing the text of the input documents. The list can contain a maximum of 25 documents. Each document should contain at least 20 characters and must contain fewer than 5,000 bytes of UTF-8 encoded characters.

Request Lenses

batchDetectDominantLanguage_textList :: Lens' BatchDetectDominantLanguage [Text] Source #

A list containing the text of the input documents. The list can contain a maximum of 25 documents. Each document should contain at least 20 characters and must contain fewer than 5,000 bytes of UTF-8 encoded characters.

Destructuring the Response

data BatchDetectDominantLanguageResponse Source #

Constructors

BatchDetectDominantLanguageResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • resultList :: [BatchDetectDominantLanguageItemResult]

    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.

  • errorList :: [BatchItemError]

    A list containing one object for each document that contained an error. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If there are no errors in the batch, the ErrorList is empty.

Instances

Instances details
Eq BatchDetectDominantLanguageResponse Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectDominantLanguage

Show BatchDetectDominantLanguageResponse Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectDominantLanguage

Generic BatchDetectDominantLanguageResponse Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectDominantLanguage

NFData BatchDetectDominantLanguageResponse Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectDominantLanguage

type Rep BatchDetectDominantLanguageResponse Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectDominantLanguage

type Rep BatchDetectDominantLanguageResponse = D1 ('MetaData "BatchDetectDominantLanguageResponse" "Amazonka.Comprehend.BatchDetectDominantLanguage" "libZSservicesZSamazonka-comprehendZSamazonka-comprehend" 'False) (C1 ('MetaCons "BatchDetectDominantLanguageResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "resultList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [BatchDetectDominantLanguageItemResult]) :*: S1 ('MetaSel ('Just "errorList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [BatchItemError]))))

newBatchDetectDominantLanguageResponse Source #

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

$sel:resultList:BatchDetectDominantLanguageResponse', batchDetectDominantLanguageResponse_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:BatchDetectDominantLanguageResponse', batchDetectDominantLanguageResponse_errorList - A list containing one object for each document that contained an error. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If there are no errors in the batch, the ErrorList is empty.

Response Lenses

batchDetectDominantLanguageResponse_resultList :: Lens' BatchDetectDominantLanguageResponse [BatchDetectDominantLanguageItemResult] 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.

batchDetectDominantLanguageResponse_errorList :: Lens' BatchDetectDominantLanguageResponse [BatchItemError] Source #

A list containing one object for each document that contained an error. The results are sorted in ascending order by the Index field and match the order of the documents in the input list. If there are no errors in the batch, the ErrorList is empty.