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 |
Detects the key noun phrases found in a batch of documents.
- batchDetectKeyPhrases :: Text -> BatchDetectKeyPhrases
- data BatchDetectKeyPhrases
- bdkpTextList :: Lens' BatchDetectKeyPhrases [Text]
- bdkpLanguageCode :: Lens' BatchDetectKeyPhrases Text
- batchDetectKeyPhrasesResponse :: Int -> BatchDetectKeyPhrasesResponse
- data BatchDetectKeyPhrasesResponse
- bdkprsResponseStatus :: Lens' BatchDetectKeyPhrasesResponse Int
- bdkprsResultList :: Lens' BatchDetectKeyPhrasesResponse [BatchDetectKeyPhrasesItemResult]
- bdkprsErrorList :: Lens' BatchDetectKeyPhrasesResponse [BatchItemError]
Creating a Request
batchDetectKeyPhrases Source #
Creates a value of BatchDetectKeyPhrases
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bdkpTextList
- A list containing the text of the input documents. The list can contain a maximum of 25 documents. Each document must contain fewer that 5,000 bytes of UTF-8 encoded characters.bdkpLanguageCode
- The language of the input documents. All documents must be in the same language.
data BatchDetectKeyPhrases Source #
See: batchDetectKeyPhrases
smart constructor.
Request Lenses
bdkpTextList :: Lens' BatchDetectKeyPhrases [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 that 5,000 bytes of UTF-8 encoded characters.
bdkpLanguageCode :: Lens' BatchDetectKeyPhrases Text Source #
The language of the input documents. All documents must be in the same language.
Destructuring the Response
batchDetectKeyPhrasesResponse Source #
Creates a value of BatchDetectKeyPhrasesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bdkprsResponseStatus
- -- | The response status code.bdkprsResultList
- 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.bdkprsErrorList
- 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 BatchDetectKeyPhrasesResponse Source #
See: batchDetectKeyPhrasesResponse
smart constructor.
Response Lenses
bdkprsResponseStatus :: Lens' BatchDetectKeyPhrasesResponse Int Source #
- - | The response status code.
bdkprsResultList :: Lens' BatchDetectKeyPhrasesResponse [BatchDetectKeyPhrasesItemResult] 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.
bdkprsErrorList :: Lens' BatchDetectKeyPhrasesResponse [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.