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

Contents

Description

Determines the dominant language of the input text for a batch of documents. For a list of languages that Amazon Comprehend can detect, see Amazon Comprehend Supported Languages .

Synopsis

Creating a Request

batchDetectDominantLanguage :: BatchDetectDominantLanguage Source #

Creates a value of BatchDetectDominantLanguage with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • bddlTextList - A list containing the text of the input documents. The list can contain a maximum of 25 documents. Each document should contain at least 20 characters and must contain fewer than 5,000 bytes of UTF-8 encoded characters.

data BatchDetectDominantLanguage Source #

See: batchDetectDominantLanguage smart constructor.

Instances

Eq BatchDetectDominantLanguage Source # 
Data BatchDetectDominantLanguage Source # 

Methods

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

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

toConstr :: BatchDetectDominantLanguage -> Constr #

dataTypeOf :: BatchDetectDominantLanguage -> DataType #

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

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

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

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

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

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

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

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

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

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

Read BatchDetectDominantLanguage Source # 
Show BatchDetectDominantLanguage Source # 
Generic BatchDetectDominantLanguage Source # 
Hashable BatchDetectDominantLanguage Source # 
ToJSON BatchDetectDominantLanguage Source # 
NFData BatchDetectDominantLanguage Source # 
AWSRequest BatchDetectDominantLanguage Source # 
ToHeaders BatchDetectDominantLanguage Source # 
ToPath BatchDetectDominantLanguage Source # 
ToQuery BatchDetectDominantLanguage Source # 
type Rep BatchDetectDominantLanguage Source # 
type Rep BatchDetectDominantLanguage = D1 * (MetaData "BatchDetectDominantLanguage" "Network.AWS.Comprehend.BatchDetectDominantLanguage" "amazonka-comprehend-1.6.0-7ky9kDszQAoCEHl21SoVpv" True) (C1 * (MetaCons "BatchDetectDominantLanguage'" PrefixI True) (S1 * (MetaSel (Just Symbol "_bddlTextList") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [Text])))
type Rs BatchDetectDominantLanguage Source # 

Request Lenses

bddlTextList :: Lens' BatchDetectDominantLanguage [Text] Source #

A list containing the text of the input documents. The list can contain a maximum of 25 documents. Each document should contain at least 20 characters and must contain fewer than 5,000 bytes of UTF-8 encoded characters.

Destructuring the Response

batchDetectDominantLanguageResponse Source #

Creates a value of BatchDetectDominantLanguageResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • bddlrsResponseStatus - -- | The response status code.
  • bddlrsResultList - 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.
  • bddlrsErrorList - 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 BatchDetectDominantLanguageResponse Source #

See: batchDetectDominantLanguageResponse smart constructor.

Instances

Eq BatchDetectDominantLanguageResponse Source # 
Data BatchDetectDominantLanguageResponse Source # 

Methods

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

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

toConstr :: BatchDetectDominantLanguageResponse -> Constr #

dataTypeOf :: BatchDetectDominantLanguageResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read BatchDetectDominantLanguageResponse Source # 
Show BatchDetectDominantLanguageResponse Source # 
Generic BatchDetectDominantLanguageResponse Source # 
NFData BatchDetectDominantLanguageResponse Source # 
type Rep BatchDetectDominantLanguageResponse Source # 
type Rep BatchDetectDominantLanguageResponse = D1 * (MetaData "BatchDetectDominantLanguageResponse" "Network.AWS.Comprehend.BatchDetectDominantLanguage" "amazonka-comprehend-1.6.0-7ky9kDszQAoCEHl21SoVpv" False) (C1 * (MetaCons "BatchDetectDominantLanguageResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_bddlrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)) ((:*:) * (S1 * (MetaSel (Just Symbol "_bddlrsResultList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [BatchDetectDominantLanguageItemResult])) (S1 * (MetaSel (Just Symbol "_bddlrsErrorList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [BatchItemError])))))

Response Lenses

bddlrsResultList :: Lens' BatchDetectDominantLanguageResponse [BatchDetectDominantLanguageItemResult] 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.

bddlrsErrorList :: Lens' BatchDetectDominantLanguageResponse [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.