libZSservicesZSamazonka-lex-runtimeZSamazonka-lex-runtime
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.LexRuntime.Types.SentimentResponse

Description

 
Synopsis

Documentation

data SentimentResponse Source #

The sentiment expressed in an utterance.

When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field structure contains the result of the analysis.

See: newSentimentResponse smart constructor.

Constructors

SentimentResponse' 

Fields

Instances

Instances details
Eq SentimentResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.SentimentResponse

Read SentimentResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.SentimentResponse

Show SentimentResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.SentimentResponse

Generic SentimentResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.SentimentResponse

Associated Types

type Rep SentimentResponse :: Type -> Type #

NFData SentimentResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.SentimentResponse

Methods

rnf :: SentimentResponse -> () #

Hashable SentimentResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.SentimentResponse

FromJSON SentimentResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.SentimentResponse

type Rep SentimentResponse Source # 
Instance details

Defined in Amazonka.LexRuntime.Types.SentimentResponse

type Rep SentimentResponse = D1 ('MetaData "SentimentResponse" "Amazonka.LexRuntime.Types.SentimentResponse" "libZSservicesZSamazonka-lex-runtimeZSamazonka-lex-runtime" 'False) (C1 ('MetaCons "SentimentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "sentimentScore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "sentimentLabel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newSentimentResponse :: SentimentResponse Source #

Create a value of SentimentResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:sentimentScore:SentimentResponse', sentimentResponse_sentimentScore - The likelihood that the sentiment was correctly inferred.

$sel:sentimentLabel:SentimentResponse', sentimentResponse_sentimentLabel - The inferred sentiment that Amazon Comprehend has the highest confidence in.

sentimentResponse_sentimentScore :: Lens' SentimentResponse (Maybe Text) Source #

The likelihood that the sentiment was correctly inferred.

sentimentResponse_sentimentLabel :: Lens' SentimentResponse (Maybe Text) Source #

The inferred sentiment that Amazon Comprehend has the highest confidence in.