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 the text.
Synopsis
- data DetectKeyPhrases = DetectKeyPhrases' {}
- newDetectKeyPhrases :: Text -> LanguageCode -> DetectKeyPhrases
- detectKeyPhrases_text :: Lens' DetectKeyPhrases Text
- detectKeyPhrases_languageCode :: Lens' DetectKeyPhrases LanguageCode
- data DetectKeyPhrasesResponse = DetectKeyPhrasesResponse' {
- keyPhrases :: Maybe [KeyPhrase]
- httpStatus :: Int
- newDetectKeyPhrasesResponse :: Int -> DetectKeyPhrasesResponse
- detectKeyPhrasesResponse_keyPhrases :: Lens' DetectKeyPhrasesResponse (Maybe [KeyPhrase])
- detectKeyPhrasesResponse_httpStatus :: Lens' DetectKeyPhrasesResponse Int
Creating a Request
data DetectKeyPhrases Source #
See: newDetectKeyPhrases
smart constructor.
DetectKeyPhrases' | |
|
Instances
:: Text | |
-> LanguageCode | |
-> DetectKeyPhrases |
Create a value of DetectKeyPhrases
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:text:DetectKeyPhrases'
, detectKeyPhrases_text
- A UTF-8 text string. Each string must contain fewer that 5,000 bytes of
UTF-8 encoded characters.
$sel:languageCode:DetectKeyPhrases'
, detectKeyPhrases_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
detectKeyPhrases_text :: Lens' DetectKeyPhrases Text Source #
A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.
detectKeyPhrases_languageCode :: Lens' DetectKeyPhrases 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 DetectKeyPhrasesResponse Source #
See: newDetectKeyPhrasesResponse
smart constructor.
DetectKeyPhrasesResponse' | |
|
Instances
newDetectKeyPhrasesResponse Source #
Create a value of DetectKeyPhrasesResponse
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:keyPhrases:DetectKeyPhrasesResponse'
, detectKeyPhrasesResponse_keyPhrases
- A collection of key phrases that Amazon Comprehend identified in the
input text. For each key phrase, the response provides the text of the
key phrase, where the key phrase begins and ends, and the level of
confidence that Amazon Comprehend has in the accuracy of the detection.
$sel:httpStatus:DetectKeyPhrasesResponse'
, detectKeyPhrasesResponse_httpStatus
- The response's http status code.
Response Lenses
detectKeyPhrasesResponse_keyPhrases :: Lens' DetectKeyPhrasesResponse (Maybe [KeyPhrase]) Source #
A collection of key phrases that Amazon Comprehend identified in the input text. For each key phrase, the response provides the text of the key phrase, where the key phrase begins and ends, and the level of confidence that Amazon Comprehend has in the accuracy of the detection.
detectKeyPhrasesResponse_httpStatus :: Lens' DetectKeyPhrasesResponse Int Source #
The response's http status code.