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

Contents

Description

Inspects a batch of documents and returns an inference of the prevailing sentiment, POSITIVE , NEUTRAL , MIXED , or NEGATIVE , in each one.

Synopsis

Creating a Request

batchDetectSentiment Source #

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

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

  • bdsTextList - 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.
  • bdsLanguageCode - The language of the input documents. All documents must be in the same language.

data BatchDetectSentiment Source #

See: batchDetectSentiment smart constructor.

Instances
Eq BatchDetectSentiment Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectSentiment

Data BatchDetectSentiment Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectSentiment

Methods

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

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

toConstr :: BatchDetectSentiment -> Constr #

dataTypeOf :: BatchDetectSentiment -> DataType #

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

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

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

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

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

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

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

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

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

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

Read BatchDetectSentiment Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectSentiment

Show BatchDetectSentiment Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectSentiment

Generic BatchDetectSentiment Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectSentiment

Associated Types

type Rep BatchDetectSentiment :: Type -> Type #

Hashable BatchDetectSentiment Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectSentiment

ToJSON BatchDetectSentiment Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectSentiment

AWSRequest BatchDetectSentiment Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectSentiment

Associated Types

type Rs BatchDetectSentiment :: Type #

ToHeaders BatchDetectSentiment Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectSentiment

ToPath BatchDetectSentiment Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectSentiment

ToQuery BatchDetectSentiment Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectSentiment

NFData BatchDetectSentiment Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectSentiment

Methods

rnf :: BatchDetectSentiment -> () #

type Rep BatchDetectSentiment Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectSentiment

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

Defined in Network.AWS.Comprehend.BatchDetectSentiment

Request Lenses

bdsTextList :: Lens' BatchDetectSentiment [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.

bdsLanguageCode :: Lens' BatchDetectSentiment Text Source #

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

Destructuring the Response

batchDetectSentimentResponse Source #

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

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

  • bdsrsResponseStatus - -- | The response status code.
  • bdsrsResultList - 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.
  • bdsrsErrorList - 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 BatchDetectSentimentResponse Source #

See: batchDetectSentimentResponse smart constructor.

Instances
Eq BatchDetectSentimentResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectSentiment

Data BatchDetectSentimentResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectSentiment

Methods

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

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

toConstr :: BatchDetectSentimentResponse -> Constr #

dataTypeOf :: BatchDetectSentimentResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read BatchDetectSentimentResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectSentiment

Show BatchDetectSentimentResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectSentiment

Generic BatchDetectSentimentResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectSentiment

Associated Types

type Rep BatchDetectSentimentResponse :: Type -> Type #

NFData BatchDetectSentimentResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectSentiment

type Rep BatchDetectSentimentResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.BatchDetectSentiment

type Rep BatchDetectSentimentResponse = D1 (MetaData "BatchDetectSentimentResponse" "Network.AWS.Comprehend.BatchDetectSentiment" "amazonka-comprehend-1.6.1-JmZRhcK5vJN1rBy4HW0MWx" False) (C1 (MetaCons "BatchDetectSentimentResponse'" PrefixI True) (S1 (MetaSel (Just "_bdsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: (S1 (MetaSel (Just "_bdsrsResultList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [BatchDetectSentimentItemResult]) :*: S1 (MetaSel (Just "_bdsrsErrorList") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [BatchItemError]))))

Response Lenses

bdsrsResultList :: Lens' BatchDetectSentimentResponse [BatchDetectSentimentItemResult] 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.

bdsrsErrorList :: Lens' BatchDetectSentimentResponse [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.