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 |
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
- data BatchDetectDominantLanguage = BatchDetectDominantLanguage' {}
- newBatchDetectDominantLanguage :: BatchDetectDominantLanguage
- batchDetectDominantLanguage_textList :: Lens' BatchDetectDominantLanguage [Text]
- data BatchDetectDominantLanguageResponse = BatchDetectDominantLanguageResponse' {}
- newBatchDetectDominantLanguageResponse :: Int -> BatchDetectDominantLanguageResponse
- batchDetectDominantLanguageResponse_httpStatus :: Lens' BatchDetectDominantLanguageResponse Int
- batchDetectDominantLanguageResponse_resultList :: Lens' BatchDetectDominantLanguageResponse [BatchDetectDominantLanguageItemResult]
- batchDetectDominantLanguageResponse_errorList :: Lens' BatchDetectDominantLanguageResponse [BatchItemError]
Creating a Request
data BatchDetectDominantLanguage Source #
See: newBatchDetectDominantLanguage
smart constructor.
Instances
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 #
See: newBatchDetectDominantLanguageResponse
smart constructor.
BatchDetectDominantLanguageResponse' | |
|
Instances
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_httpStatus :: Lens' BatchDetectDominantLanguageResponse Int Source #
The response's http status code.
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.