#[non_exhaustive]pub struct TargetedSentimentMention { /* private fields */ }Expand description
Information about one mention of an entity. The mention information includes the location of the mention in the text and the sentiment of the mention.
For more information about targeted sentiment, see Targeted sentiment.
Implementations§
source§impl TargetedSentimentMention
impl TargetedSentimentMention
sourcepub fn score(&self) -> Option<f32>
pub fn score(&self) -> Option<f32>
Model confidence that the entity is relevant. Value range is zero to one, where one is highest confidence.
sourcepub fn group_score(&self) -> Option<f32>
pub fn group_score(&self) -> Option<f32>
The confidence that all the entities mentioned in the group relate to the same entity.
sourcepub fn type(&self) -> Option<&TargetedSentimentEntityType>
pub fn type(&self) -> Option<&TargetedSentimentEntityType>
The type of the entity. Amazon Comprehend supports a variety of entity types.
sourcepub fn mention_sentiment(&self) -> Option<&MentionSentiment>
pub fn mention_sentiment(&self) -> Option<&MentionSentiment>
Contains the sentiment and sentiment score for the mention.
sourcepub fn begin_offset(&self) -> Option<i32>
pub fn begin_offset(&self) -> Option<i32>
The offset into the document text where the mention begins.
sourcepub fn end_offset(&self) -> Option<i32>
pub fn end_offset(&self) -> Option<i32>
The offset into the document text where the mention ends.
source§impl TargetedSentimentMention
impl TargetedSentimentMention
sourcepub fn builder() -> TargetedSentimentMentionBuilder
pub fn builder() -> TargetedSentimentMentionBuilder
Creates a new builder-style object to manufacture TargetedSentimentMention.
Trait Implementations§
source§impl Clone for TargetedSentimentMention
impl Clone for TargetedSentimentMention
source§fn clone(&self) -> TargetedSentimentMention
fn clone(&self) -> TargetedSentimentMention
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 TargetedSentimentMention
impl Debug for TargetedSentimentMention
source§impl PartialEq<TargetedSentimentMention> for TargetedSentimentMention
impl PartialEq<TargetedSentimentMention> for TargetedSentimentMention
source§fn eq(&self, other: &TargetedSentimentMention) -> bool
fn eq(&self, other: &TargetedSentimentMention) -> bool
This method tests for
self and other values to be equal, and is used
by ==.