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

Contents

Description

Inspects text for entities, and returns information about them. For more information, about entities, see 'how-entities' .

Synopsis

Creating a Request

detectEntities Source #

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

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

  • deText - A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.
  • deLanguageCode - The RFC 5646 language code of the input text. If the request does not specify the language code, the service detects the dominant language. If you specify a language code that the service does not support, it returns UnsupportedLanguageException exception. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.

data DetectEntities Source #

See: detectEntities smart constructor.

Instances
Eq DetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectEntities

Data DetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectEntities

Methods

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

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

toConstr :: DetectEntities -> Constr #

dataTypeOf :: DetectEntities -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectEntities

Show DetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectEntities

Generic DetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectEntities

Associated Types

type Rep DetectEntities :: Type -> Type #

Hashable DetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectEntities

ToJSON DetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectEntities

AWSRequest DetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectEntities

Associated Types

type Rs DetectEntities :: Type #

ToHeaders DetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectEntities

ToPath DetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectEntities

ToQuery DetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectEntities

NFData DetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectEntities

Methods

rnf :: DetectEntities -> () #

type Rep DetectEntities Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectEntities

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

Defined in Network.AWS.Comprehend.DetectEntities

Request Lenses

deText :: Lens' DetectEntities Text Source #

A UTF-8 text string. Each string must contain fewer that 5,000 bytes of UTF-8 encoded characters.

deLanguageCode :: Lens' DetectEntities LanguageCode Source #

The RFC 5646 language code of the input text. If the request does not specify the language code, the service detects the dominant language. If you specify a language code that the service does not support, it returns UnsupportedLanguageException exception. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.

Destructuring the Response

detectEntitiesResponse Source #

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

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

  • dersEntities - A collection of entities identified in the input text. For each entity, the response provides the entity text, entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection. For a list of entity types, see 'how-entities' .
  • dersResponseStatus - -- | The response status code.

data DetectEntitiesResponse Source #

See: detectEntitiesResponse smart constructor.

Instances
Eq DetectEntitiesResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectEntities

Data DetectEntitiesResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectEntities

Methods

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

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

toConstr :: DetectEntitiesResponse -> Constr #

dataTypeOf :: DetectEntitiesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DetectEntitiesResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectEntities

Show DetectEntitiesResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectEntities

Generic DetectEntitiesResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectEntities

Associated Types

type Rep DetectEntitiesResponse :: Type -> Type #

NFData DetectEntitiesResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectEntities

Methods

rnf :: DetectEntitiesResponse -> () #

type Rep DetectEntitiesResponse Source # 
Instance details

Defined in Network.AWS.Comprehend.DetectEntities

type Rep DetectEntitiesResponse = D1 (MetaData "DetectEntitiesResponse" "Network.AWS.Comprehend.DetectEntities" "amazonka-comprehend-1.6.1-JmZRhcK5vJN1rBy4HW0MWx" False) (C1 (MetaCons "DetectEntitiesResponse'" PrefixI True) (S1 (MetaSel (Just "_dersEntities") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Entity])) :*: S1 (MetaSel (Just "_dersResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

dersEntities :: Lens' DetectEntitiesResponse [Entity] Source #

A collection of entities identified in the input text. For each entity, the response provides the entity text, entity type, where the entity text begins and ends, and the level of confidence that Amazon Comprehend has in the detection. For a list of entity types, see 'how-entities' .

dersResponseStatus :: Lens' DetectEntitiesResponse Int Source #

  • - | The response status code.