Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
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 .
- batchDetectDominantLanguage :: BatchDetectDominantLanguage
- data BatchDetectDominantLanguage
- bddlTextList :: Lens' BatchDetectDominantLanguage [Text]
- batchDetectDominantLanguageResponse :: Int -> BatchDetectDominantLanguageResponse
- data BatchDetectDominantLanguageResponse
- bddlrsResponseStatus :: Lens' BatchDetectDominantLanguageResponse Int
- bddlrsResultList :: Lens' BatchDetectDominantLanguageResponse [BatchDetectDominantLanguageItemResult]
- bddlrsErrorList :: Lens' BatchDetectDominantLanguageResponse [BatchItemError]
Creating a Request
batchDetectDominantLanguage :: BatchDetectDominantLanguage Source #
Creates a value of BatchDetectDominantLanguage
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bddlTextList
- 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.
data BatchDetectDominantLanguage Source #
See: batchDetectDominantLanguage
smart constructor.
Request Lenses
bddlTextList :: 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
batchDetectDominantLanguageResponse Source #
Creates a value of BatchDetectDominantLanguageResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bddlrsResponseStatus
- -- | The response status code.bddlrsResultList
- A list of objects containing the results of the operation. The results are sorted in ascending order by theIndex
field and match the order of the documents in the input list. If all of the documents contain an error, theResultList
is empty.bddlrsErrorList
- A list containing one object for each document that contained an error. The results are sorted in ascending order by theIndex
field and match the order of the documents in the input list. If there are no errors in the batch, theErrorList
is empty.
data BatchDetectDominantLanguageResponse Source #
See: batchDetectDominantLanguageResponse
smart constructor.
Response Lenses
bddlrsResponseStatus :: Lens' BatchDetectDominantLanguageResponse Int Source #
- - | The response status code.
bddlrsResultList :: 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.
bddlrsErrorList :: 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.