Struct aws_sdk_lexruntimev2::model::SentimentScore
source · #[non_exhaustive]pub struct SentimentScore { /* private fields */ }Expand description
The individual sentiment responses for the utterance.
Implementations§
source§impl SentimentScore
impl SentimentScore
sourcepub fn positive(&self) -> f64
pub fn positive(&self) -> f64
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the POSITIVE sentiment.
sourcepub fn negative(&self) -> f64
pub fn negative(&self) -> f64
The level of confidence that Amazon Comprehend has in the accuracy of its detection of the NEGATIVE sentiment.
source§impl SentimentScore
impl SentimentScore
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SentimentScore.
Trait Implementations§
source§impl Clone for SentimentScore
impl Clone for SentimentScore
source§fn clone(&self) -> SentimentScore
fn clone(&self) -> SentimentScore
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SentimentScore
impl Debug for SentimentScore
source§impl PartialEq<SentimentScore> for SentimentScore
impl PartialEq<SentimentScore> for SentimentScore
source§fn eq(&self, other: &SentimentScore) -> bool
fn eq(&self, other: &SentimentScore) -> bool
This method tests for
self and other values to be equal, and is used
by ==.