libZSservicesZSamazonka-comprehendZSamazonka-comprehend
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.Comprehend.Types.SentimentScore

Description

 
Synopsis

Documentation

data SentimentScore Source #

Describes the level of confidence that Amazon Comprehend has in the accuracy of its detection of sentiments.

See: newSentimentScore smart constructor.

Constructors

SentimentScore' 

Fields

  • mixed :: Maybe Double

    The level of confidence that Amazon Comprehend has in the accuracy of its detection of the MIXED sentiment.

  • negative :: Maybe Double

    The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEGATIVE sentiment.

  • neutral :: Maybe Double

    The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEUTRAL sentiment.

  • positive :: Maybe Double

    The level of confidence that Amazon Comprehend has in the accuracy of its detection of the POSITIVE sentiment.

Instances

Instances details
Eq SentimentScore Source # 
Instance details

Defined in Amazonka.Comprehend.Types.SentimentScore

Read SentimentScore Source # 
Instance details

Defined in Amazonka.Comprehend.Types.SentimentScore

Show SentimentScore Source # 
Instance details

Defined in Amazonka.Comprehend.Types.SentimentScore

Generic SentimentScore Source # 
Instance details

Defined in Amazonka.Comprehend.Types.SentimentScore

Associated Types

type Rep SentimentScore :: Type -> Type #

NFData SentimentScore Source # 
Instance details

Defined in Amazonka.Comprehend.Types.SentimentScore

Methods

rnf :: SentimentScore -> () #

Hashable SentimentScore Source # 
Instance details

Defined in Amazonka.Comprehend.Types.SentimentScore

FromJSON SentimentScore Source # 
Instance details

Defined in Amazonka.Comprehend.Types.SentimentScore

type Rep SentimentScore Source # 
Instance details

Defined in Amazonka.Comprehend.Types.SentimentScore

type Rep SentimentScore = D1 ('MetaData "SentimentScore" "Amazonka.Comprehend.Types.SentimentScore" "libZSservicesZSamazonka-comprehendZSamazonka-comprehend" 'False) (C1 ('MetaCons "SentimentScore'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "mixed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "negative") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double))) :*: (S1 ('MetaSel ('Just "neutral") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "positive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)))))

newSentimentScore :: SentimentScore Source #

Create a value of SentimentScore 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:mixed:SentimentScore', sentimentScore_mixed - The level of confidence that Amazon Comprehend has in the accuracy of its detection of the MIXED sentiment.

$sel:negative:SentimentScore', sentimentScore_negative - The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEGATIVE sentiment.

$sel:neutral:SentimentScore', sentimentScore_neutral - The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEUTRAL sentiment.

$sel:positive:SentimentScore', sentimentScore_positive - The level of confidence that Amazon Comprehend has in the accuracy of its detection of the POSITIVE sentiment.

sentimentScore_mixed :: Lens' SentimentScore (Maybe Double) Source #

The level of confidence that Amazon Comprehend has in the accuracy of its detection of the MIXED sentiment.

sentimentScore_negative :: Lens' SentimentScore (Maybe Double) Source #

The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEGATIVE sentiment.

sentimentScore_neutral :: Lens' SentimentScore (Maybe Double) Source #

The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEUTRAL sentiment.

sentimentScore_positive :: Lens' SentimentScore (Maybe Double) Source #

The level of confidence that Amazon Comprehend has in the accuracy of its detection of the POSITIVE sentiment.