#[non_exhaustive]pub struct TargetedSentimentMention {
pub score: Option<f32>,
pub group_score: Option<f32>,
pub text: Option<String>,
pub type: Option<TargetedSentimentEntityType>,
pub mention_sentiment: Option<MentionSentiment>,
pub begin_offset: Option<i32>,
pub end_offset: Option<i32>,
}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.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.score: Option<f32>Model confidence that the entity is relevant. Value range is zero to one, where one is highest confidence.
group_score: Option<f32>The confidence that all the entities mentioned in the group relate to the same entity.
text: Option<String>The text in the document that identifies the entity.
type: Option<TargetedSentimentEntityType>The type of the entity. Amazon Comprehend supports a variety of entity types.
mention_sentiment: Option<MentionSentiment>Contains the sentiment and sentiment score for the mention.
begin_offset: Option<i32>The offset into the document text where the mention begins.
end_offset: Option<i32>The offset into the document text where the mention ends.
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TargetedSentimentMention
impl Debug for TargetedSentimentMention
source§impl PartialEq for TargetedSentimentMention
impl PartialEq for TargetedSentimentMention
source§fn eq(&self, other: &TargetedSentimentMention) -> bool
fn eq(&self, other: &TargetedSentimentMention) -> bool
self and other values to be equal, and is used
by ==.