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 |
Inspects text for entities, and returns information about them. For more information, about entities, see 'how-entities' .
- detectEntities :: Text -> LanguageCode -> DetectEntities
- data DetectEntities
- deText :: Lens' DetectEntities Text
- deLanguageCode :: Lens' DetectEntities LanguageCode
- detectEntitiesResponse :: Int -> DetectEntitiesResponse
- data DetectEntitiesResponse
- dersEntities :: Lens' DetectEntitiesResponse [Entity]
- dersResponseStatus :: Lens' DetectEntitiesResponse Int
Creating a Request
Creates a value of DetectEntities
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
deText
- A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.deLanguageCode
- The RFC 5646 language code of the input text. If the request does not specify the language code, the service detects the dominant language. If you specify a language code that the service does not support, it returnsUnsupportedLanguageException
exception. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
data DetectEntities Source #
See: detectEntities
smart constructor.
Request Lenses
deText :: Lens' DetectEntities Text Source #
A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.
deLanguageCode :: Lens' DetectEntities LanguageCode Source #
The RFC 5646 language code of the input text. If the request does not specify the language code, the service detects the dominant language. If you specify a language code that the service does not support, it returns UnsupportedLanguageException
exception. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
Destructuring the Response
detectEntitiesResponse Source #
Creates a value of DetectEntitiesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dersEntities
- A collection of entities identified in the input text. For each entity, the response provides the entity text, entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection. For a list of entity types, see 'how-entities' .dersResponseStatus
- -- | The response status code.
data DetectEntitiesResponse Source #
See: detectEntitiesResponse
smart constructor.
Response Lenses
dersEntities :: Lens' DetectEntitiesResponse [Entity] Source #
A collection of entities identified in the input text. For each entity, the response provides the entity text, entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection. For a list of entity types, see 'how-entities' .
dersResponseStatus :: Lens' DetectEntitiesResponse Int Source #
- - | The response status code.