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

Defined in Network.AWS.Comprehend.BatchDetectDominantLanguage

Data BatchDetectDominantLanguage Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectDominantLanguage

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

Defined in Network.AWS.Comprehend.BatchDetectDominantLanguage

Show BatchDetectDominantLanguage Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectDominantLanguage

Generic BatchDetectDominantLanguage Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectDominantLanguage

Associated Types

type Rep BatchDetectDominantLanguage :: Type -> Type #

Hashable BatchDetectDominantLanguage Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectDominantLanguage

ToJSON BatchDetectDominantLanguage Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectDominantLanguage

AWSRequest BatchDetectDominantLanguage Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectDominantLanguage

Associated Types

type Rs BatchDetectDominantLanguage :: Type #

ToHeaders BatchDetectDominantLanguage Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectDominantLanguage

ToPath BatchDetectDominantLanguage Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectDominantLanguage

ToQuery BatchDetectDominantLanguage Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectDominantLanguage

NFData BatchDetectDominantLanguage Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectDominantLanguage

type Rep BatchDetectDominantLanguage Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectDominantLanguage

type Rep BatchDetectDominantLanguage = D1 (MetaData "BatchDetectDominantLanguage" "Network.AWS.Comprehend.BatchDetectDominantLanguage" "amazonka-comprehend-1.6.1-JmZRhcK5vJN1rBy4HW0MWx" True) (C1 (MetaCons "BatchDetectDominantLanguage'" PrefixI True) (S1 (MetaSel (Just "_bddlTextList") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Text])))
type Rs BatchDetectDominantLanguage Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectDominantLanguage

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

Defined in Network.AWS.Comprehend.BatchDetectDominantLanguage

Data BatchDetectDominantLanguageResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectDominantLanguage

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

Defined in Network.AWS.Comprehend.BatchDetectDominantLanguage

Show BatchDetectDominantLanguageResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectDominantLanguage

Generic BatchDetectDominantLanguageResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectDominantLanguage

NFData BatchDetectDominantLanguageResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectDominantLanguage

type Rep BatchDetectDominantLanguageResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectDominantLanguage

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