| 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 |
Network.AWS.Comprehend.BatchDetectEntities
Description
Inspects the text of a batch of documents and returns information about them. For more information about entities, see 'how-entities'
- batchDetectEntities :: Text -> BatchDetectEntities
- data BatchDetectEntities
- bdeTextList :: Lens' BatchDetectEntities [Text]
- bdeLanguageCode :: Lens' BatchDetectEntities Text
- batchDetectEntitiesResponse :: Int -> BatchDetectEntitiesResponse
- data BatchDetectEntitiesResponse
- bdersResponseStatus :: Lens' BatchDetectEntitiesResponse Int
- bdersResultList :: Lens' BatchDetectEntitiesResponse [BatchDetectEntitiesItemResult]
- bdersErrorList :: Lens' BatchDetectEntitiesResponse [BatchItemError]
Creating a Request
Arguments
| :: Text | |
| -> BatchDetectEntities |
Creates a value of BatchDetectEntities with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bdeTextList- A list containing the text of the input documents. The list can contain a maximum of 25 documents. Each document must contain fewer than 5,000 bytes of UTF-8 encoded characters.bdeLanguageCode- The language of the input documents. All documents must be in the same language.
data BatchDetectEntities Source #
See: batchDetectEntities smart constructor.
Instances
Request Lenses
bdeTextList :: Lens' BatchDetectEntities [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 than 5,000 bytes of UTF-8 encoded characters.
bdeLanguageCode :: Lens' BatchDetectEntities Text Source #
The language of the input documents. All documents must be in the same language.
Destructuring the Response
batchDetectEntitiesResponse Source #
Arguments
| :: Int | |
| -> BatchDetectEntitiesResponse |
Creates a value of BatchDetectEntitiesResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
bdersResponseStatus- -- | The response status code.bdersResultList- A list of objects containing the results of the operation. The results are sorted in ascending order by theIndexfield and match the order of the documents in the input list. If all of the documents contain an error, theResultListis empty.bdersErrorList- A list containing one object for each document that contained an error. The results are sorted in ascending order by theIndexfield and match the order of the documents in the input list. If there are no errors in the batch, theErrorListis empty.
data BatchDetectEntitiesResponse Source #
See: batchDetectEntitiesResponse smart constructor.
Instances
Response Lenses
bdersResponseStatus :: Lens' BatchDetectEntitiesResponse Int Source #
- - | The response status code.
bdersResultList :: Lens' BatchDetectEntitiesResponse [BatchDetectEntitiesItemResult] 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.
bdersErrorList :: Lens' BatchDetectEntitiesResponse [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.