| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.LexRuntime.Types.SentimentResponse
Description
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
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:sentimentLabel:SentimentResponse', sentimentResponse_sentimentLabel - The inferred sentiment that Amazon Comprehend has the highest confidence
in.
$sel:sentimentScore:SentimentResponse', sentimentResponse_sentimentScore - 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.
sentimentResponse_sentimentScore :: Lens' SentimentResponse (Maybe Text) Source #
The likelihood that the sentiment was correctly inferred.