amazonka-comprehend-1.6.0: Amazon Comprehend SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Comprehend.BatchDetectEntities

Contents

Description

Inspects the text of a batch of documents and returns information about them. For more information about entities, see 'how-entities'

Synopsis

Creating a Request

batchDetectEntities Source #

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

Eq BatchDetectEntities Source # 
Data BatchDetectEntities Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BatchDetectEntities -> c BatchDetectEntities #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BatchDetectEntities #

toConstr :: BatchDetectEntities -> Constr #

dataTypeOf :: BatchDetectEntities -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c BatchDetectEntities) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BatchDetectEntities) #

gmapT :: (forall b. Data b => b -> b) -> BatchDetectEntities -> BatchDetectEntities #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BatchDetectEntities -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BatchDetectEntities -> r #

gmapQ :: (forall d. Data d => d -> u) -> BatchDetectEntities -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BatchDetectEntities -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BatchDetectEntities -> m BatchDetectEntities #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BatchDetectEntities -> m BatchDetectEntities #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BatchDetectEntities -> m BatchDetectEntities #

Read BatchDetectEntities Source # 
Show BatchDetectEntities Source # 
Generic BatchDetectEntities Source # 
Hashable BatchDetectEntities Source # 
ToJSON BatchDetectEntities Source # 
NFData BatchDetectEntities Source # 

Methods

rnf :: BatchDetectEntities -> () #

AWSRequest BatchDetectEntities Source # 
ToHeaders BatchDetectEntities Source # 
ToPath BatchDetectEntities Source # 
ToQuery BatchDetectEntities Source # 
type Rep BatchDetectEntities Source # 
type Rep BatchDetectEntities = D1 * (MetaData "BatchDetectEntities" "Network.AWS.Comprehend.BatchDetectEntities" "amazonka-comprehend-1.6.0-7ky9kDszQAoCEHl21SoVpv" False) (C1 * (MetaCons "BatchDetectEntities'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_bdeTextList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [Text])) (S1 * (MetaSel (Just Symbol "_bdeLanguageCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs BatchDetectEntities Source # 

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 #

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 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 - 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.

data BatchDetectEntitiesResponse Source #

See: batchDetectEntitiesResponse smart constructor.

Instances

Eq BatchDetectEntitiesResponse Source # 
Data BatchDetectEntitiesResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BatchDetectEntitiesResponse -> c BatchDetectEntitiesResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BatchDetectEntitiesResponse #

toConstr :: BatchDetectEntitiesResponse -> Constr #

dataTypeOf :: BatchDetectEntitiesResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c BatchDetectEntitiesResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BatchDetectEntitiesResponse) #

gmapT :: (forall b. Data b => b -> b) -> BatchDetectEntitiesResponse -> BatchDetectEntitiesResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BatchDetectEntitiesResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BatchDetectEntitiesResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> BatchDetectEntitiesResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BatchDetectEntitiesResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BatchDetectEntitiesResponse -> m BatchDetectEntitiesResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BatchDetectEntitiesResponse -> m BatchDetectEntitiesResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BatchDetectEntitiesResponse -> m BatchDetectEntitiesResponse #

Read BatchDetectEntitiesResponse Source # 
Show BatchDetectEntitiesResponse Source # 
Generic BatchDetectEntitiesResponse Source # 
NFData BatchDetectEntitiesResponse Source # 
type Rep BatchDetectEntitiesResponse Source # 
type Rep BatchDetectEntitiesResponse = D1 * (MetaData "BatchDetectEntitiesResponse" "Network.AWS.Comprehend.BatchDetectEntities" "amazonka-comprehend-1.6.0-7ky9kDszQAoCEHl21SoVpv" False) (C1 * (MetaCons "BatchDetectEntitiesResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_bdersResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)) ((:*:) * (S1 * (MetaSel (Just Symbol "_bdersResultList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [BatchDetectEntitiesItemResult])) (S1 * (MetaSel (Just Symbol "_bdersErrorList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [BatchItemError])))))

Response Lenses

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.