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

Description

Inspects the text of a batch of documents for named entities and returns information about them. For more information about named entities, see how-entities

Synopsis

Creating a Request

data BatchDetectEntities Source #

See: newBatchDetectEntities smart constructor.

Constructors

BatchDetectEntities' 

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 must contain fewer than 5,000 bytes of UTF-8 encoded characters.

  • languageCode :: LanguageCode

    The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language.

Instances

Instances details
Eq BatchDetectEntities Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectEntities

Show BatchDetectEntities Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectEntities

Generic BatchDetectEntities Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectEntities

Associated Types

type Rep BatchDetectEntities :: Type -> Type #

NFData BatchDetectEntities Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectEntities

Methods

rnf :: BatchDetectEntities -> () #

Hashable BatchDetectEntities Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectEntities

ToJSON BatchDetectEntities Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectEntities

AWSRequest BatchDetectEntities Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectEntities

Associated Types

type AWSResponse BatchDetectEntities #

ToHeaders BatchDetectEntities Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectEntities

ToPath BatchDetectEntities Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectEntities

ToQuery BatchDetectEntities Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectEntities

type Rep BatchDetectEntities Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectEntities

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

Defined in Amazonka.Comprehend.BatchDetectEntities

newBatchDetectEntities Source #

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

$sel:languageCode:BatchDetectEntities', batchDetectEntities_languageCode - The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language.

Request Lenses

batchDetectEntities_textList :: Lens' BatchDetectEntities [Text] Source #

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

batchDetectEntities_languageCode :: Lens' BatchDetectEntities LanguageCode Source #

The language of the input documents. You can specify any of the primary languages supported by Amazon Comprehend. All documents must be in the same language.

Destructuring the Response

data BatchDetectEntitiesResponse Source #

See: newBatchDetectEntitiesResponse smart constructor.

Constructors

BatchDetectEntitiesResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • resultList :: [BatchDetectEntitiesItemResult]

    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 BatchDetectEntitiesResponse Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectEntities

Show BatchDetectEntitiesResponse Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectEntities

Generic BatchDetectEntitiesResponse Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectEntities

Associated Types

type Rep BatchDetectEntitiesResponse :: Type -> Type #

NFData BatchDetectEntitiesResponse Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectEntities

type Rep BatchDetectEntitiesResponse Source # 
Instance details

Defined in Amazonka.Comprehend.BatchDetectEntities

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

newBatchDetectEntitiesResponse Source #

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

$sel:resultList:BatchDetectEntitiesResponse', batchDetectEntitiesResponse_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:BatchDetectEntitiesResponse', batchDetectEntitiesResponse_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

batchDetectEntitiesResponse_resultList :: Lens' BatchDetectEntitiesResponse [BatchDetectEntitiesItemResult] 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.

batchDetectEntitiesResponse_errorList :: Lens' BatchDetectEntitiesResponse [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.