AWSLexSentimentResponse
Objective-C
@interface AWSLexSentimentResponse
Swift
class AWSLexSentimentResponse
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.
-
The inferred sentiment that Amazon Comprehend has the highest confidence in.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable sentimentLabel;
Swift
var sentimentLabel: String? { get set }
-
The likelihood that the sentiment was correctly inferred.
Declaration
Objective-C
@property (nonatomic, strong) NSString *_Nullable sentimentScore;
Swift
var sentimentScore: String? { get set }