amazonka-comprehend-1.6.1: 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 # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectEntities

Data BatchDetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectEntities

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 # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectEntities

Show BatchDetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectEntities

Generic BatchDetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectEntities

Associated Types

type Rep BatchDetectEntities :: Type -> Type #

Hashable BatchDetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectEntities

ToJSON BatchDetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectEntities

AWSRequest BatchDetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectEntities

Associated Types

type Rs BatchDetectEntities :: Type #

ToHeaders BatchDetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectEntities

ToPath BatchDetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectEntities

ToQuery BatchDetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectEntities

NFData BatchDetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectEntities

Methods

rnf :: BatchDetectEntities -> () #

type Rep BatchDetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectEntities

type Rep BatchDetectEntities = D1 (MetaData "BatchDetectEntities" "Network.AWS.Comprehend.BatchDetectEntities" "amazonka-comprehend-1.6.1-JmZRhcK5vJN1rBy4HW0MWx" False) (C1 (MetaCons "BatchDetectEntities'" PrefixI True) (S1 (MetaSel (Just "_bdeTextList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]) :*: S1 (MetaSel (Just "_bdeLanguageCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs BatchDetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectEntities

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 # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectEntities

Data BatchDetectEntitiesResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectEntities

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 # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectEntities

Show BatchDetectEntitiesResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectEntities

Generic BatchDetectEntitiesResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectEntities

Associated Types

type Rep BatchDetectEntitiesResponse :: Type -> Type #

NFData BatchDetectEntitiesResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectEntities

type Rep BatchDetectEntitiesResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectEntities

type Rep BatchDetectEntitiesResponse = D1 (MetaData "BatchDetectEntitiesResponse" "Network.AWS.Comprehend.BatchDetectEntities" "amazonka-comprehend-1.6.1-JmZRhcK5vJN1rBy4HW0MWx" False) (C1 (MetaCons "BatchDetectEntitiesResponse'" PrefixI True) (S1 (MetaSel (Just "_bdersResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: (S1 (MetaSel (Just "_bdersResultList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [BatchDetectEntitiesItemResult]) :*: S1 (MetaSel (Just "_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.