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 |
Detects the key noun phrases found in a batch of documents.
Synopsis
- data BatchDetectKeyPhrases = BatchDetectKeyPhrases' {}
- newBatchDetectKeyPhrases :: LanguageCode -> BatchDetectKeyPhrases
- batchDetectKeyPhrases_textList :: Lens' BatchDetectKeyPhrases [Text]
- batchDetectKeyPhrases_languageCode :: Lens' BatchDetectKeyPhrases LanguageCode
- data BatchDetectKeyPhrasesResponse = BatchDetectKeyPhrasesResponse' {}
- newBatchDetectKeyPhrasesResponse :: Int -> BatchDetectKeyPhrasesResponse
- batchDetectKeyPhrasesResponse_httpStatus :: Lens' BatchDetectKeyPhrasesResponse Int
- batchDetectKeyPhrasesResponse_resultList :: Lens' BatchDetectKeyPhrasesResponse [BatchDetectKeyPhrasesItemResult]
- batchDetectKeyPhrasesResponse_errorList :: Lens' BatchDetectKeyPhrasesResponse [BatchItemError]
Creating a Request
data BatchDetectKeyPhrases Source #
See: newBatchDetectKeyPhrases
smart constructor.
BatchDetectKeyPhrases' | |
|
Instances
newBatchDetectKeyPhrases Source #
Create a value of BatchDetectKeyPhrases
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:BatchDetectKeyPhrases'
, batchDetectKeyPhrases_textList
- 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.
$sel:languageCode:BatchDetectKeyPhrases'
, batchDetectKeyPhrases_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
batchDetectKeyPhrases_textList :: 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.
batchDetectKeyPhrases_languageCode :: Lens' BatchDetectKeyPhrases 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 BatchDetectKeyPhrasesResponse Source #
See: newBatchDetectKeyPhrasesResponse
smart constructor.
BatchDetectKeyPhrasesResponse' | |
|
Instances
newBatchDetectKeyPhrasesResponse Source #
Create a value of BatchDetectKeyPhrasesResponse
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:BatchDetectKeyPhrasesResponse'
, batchDetectKeyPhrasesResponse_httpStatus
- The response's http status code.
$sel:resultList:BatchDetectKeyPhrasesResponse'
, batchDetectKeyPhrasesResponse_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:BatchDetectKeyPhrasesResponse'
, batchDetectKeyPhrasesResponse_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
batchDetectKeyPhrasesResponse_httpStatus :: Lens' BatchDetectKeyPhrasesResponse Int Source #
The response's http status code.
batchDetectKeyPhrasesResponse_resultList :: 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.
batchDetectKeyPhrasesResponse_errorList :: 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.