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

Contents

Description

Detects the key noun phrases found in a batch of documents.

Synopsis

Creating a Request

batchDetectKeyPhrases Source #

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

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

  • bdkpTextList - A list containing the text of the input documents. The list can contain a maximum of 25 documents. Each document must contain fewer that 5,000 bytes of UTF-8 encoded characters.
  • bdkpLanguageCode - The language of the input documents. All documents must be in the same language.

data BatchDetectKeyPhrases Source #

See: batchDetectKeyPhrases smart constructor.

Instances
Eq BatchDetectKeyPhrases Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectKeyPhrases

Data BatchDetectKeyPhrases Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectKeyPhrases

Methods

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

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

toConstr :: BatchDetectKeyPhrases -> Constr #

dataTypeOf :: BatchDetectKeyPhrases -> DataType #

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

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

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

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

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

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

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

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

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

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

Read BatchDetectKeyPhrases Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectKeyPhrases

Show BatchDetectKeyPhrases Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectKeyPhrases

Generic BatchDetectKeyPhrases Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectKeyPhrases

Associated Types

type Rep BatchDetectKeyPhrases :: Type -> Type #

Hashable BatchDetectKeyPhrases Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectKeyPhrases

ToJSON BatchDetectKeyPhrases Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectKeyPhrases

AWSRequest BatchDetectKeyPhrases Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectKeyPhrases

Associated Types

type Rs BatchDetectKeyPhrases :: Type #

ToHeaders BatchDetectKeyPhrases Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectKeyPhrases

ToPath BatchDetectKeyPhrases Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectKeyPhrases

ToQuery BatchDetectKeyPhrases Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectKeyPhrases

NFData BatchDetectKeyPhrases Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectKeyPhrases

Methods

rnf :: BatchDetectKeyPhrases -> () #

type Rep BatchDetectKeyPhrases Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectKeyPhrases

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

Defined in Network.AWS.Comprehend.BatchDetectKeyPhrases

Request Lenses

bdkpTextList :: Lens' BatchDetectKeyPhrases [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 that 5,000 bytes of UTF-8 encoded characters.

bdkpLanguageCode :: Lens' BatchDetectKeyPhrases Text Source #

The language of the input documents. All documents must be in the same language.

Destructuring the Response

batchDetectKeyPhrasesResponse Source #

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

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

  • bdkprsResponseStatus - -- | The response status code.
  • bdkprsResultList - 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.
  • bdkprsErrorList - 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 BatchDetectKeyPhrasesResponse Source #

See: batchDetectKeyPhrasesResponse smart constructor.

Instances
Eq BatchDetectKeyPhrasesResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectKeyPhrases

Data BatchDetectKeyPhrasesResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectKeyPhrases

Methods

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

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

toConstr :: BatchDetectKeyPhrasesResponse -> Constr #

dataTypeOf :: BatchDetectKeyPhrasesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read BatchDetectKeyPhrasesResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectKeyPhrases

Show BatchDetectKeyPhrasesResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectKeyPhrases

Generic BatchDetectKeyPhrasesResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectKeyPhrases

Associated Types

type Rep BatchDetectKeyPhrasesResponse :: Type -> Type #

NFData BatchDetectKeyPhrasesResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectKeyPhrases

type Rep BatchDetectKeyPhrasesResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectKeyPhrases

type Rep BatchDetectKeyPhrasesResponse = D1 (MetaData "BatchDetectKeyPhrasesResponse" "Network.AWS.Comprehend.BatchDetectKeyPhrases" "amazonka-comprehend-1.6.1-JmZRhcK5vJN1rBy4HW0MWx" False) (C1 (MetaCons "BatchDetectKeyPhrasesResponse'" PrefixI True) (S1 (MetaSel (Just "_bdkprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: (S1 (MetaSel (Just "_bdkprsResultList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [BatchDetectKeyPhrasesItemResult]) :*: S1 (MetaSel (Just "_bdkprsErrorList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [BatchItemError]))))

Response Lenses

bdkprsResultList :: Lens' BatchDetectKeyPhrasesResponse [BatchDetectKeyPhrasesItemResult] 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.

bdkprsErrorList :: Lens' BatchDetectKeyPhrasesResponse [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.