Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
SentimentResponse' | |
|
Instances
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.