Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data BatchDetectEntities = BatchDetectEntities' {}
- newBatchDetectEntities :: LanguageCode -> BatchDetectEntities
- batchDetectEntities_textList :: Lens' BatchDetectEntities [Text]
- batchDetectEntities_languageCode :: Lens' BatchDetectEntities LanguageCode
- data BatchDetectEntitiesResponse = BatchDetectEntitiesResponse' {}
- newBatchDetectEntitiesResponse :: Int -> BatchDetectEntitiesResponse
- batchDetectEntitiesResponse_httpStatus :: Lens' BatchDetectEntitiesResponse Int
- batchDetectEntitiesResponse_resultList :: Lens' BatchDetectEntitiesResponse [BatchDetectEntitiesItemResult]
- batchDetectEntitiesResponse_errorList :: Lens' BatchDetectEntitiesResponse [BatchItemError]
Creating a Request
data BatchDetectEntities Source #
See: newBatchDetectEntities
smart constructor.
BatchDetectEntities' | |
|
Instances
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.
BatchDetectEntitiesResponse' | |
|
Instances
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_httpStatus :: Lens' BatchDetectEntitiesResponse Int Source #
The response's http status code.
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.