#[non_exhaustive]pub struct TargetedSentimentMentionBuilder { /* private fields */ }Expand description
A builder for TargetedSentimentMention.
Implementations§
source§impl TargetedSentimentMentionBuilder
impl TargetedSentimentMentionBuilder
sourcepub fn score(self, input: f32) -> Self
pub fn score(self, input: f32) -> Self
Model confidence that the entity is relevant. Value range is zero to one, where one is highest confidence.
sourcepub fn set_score(self, input: Option<f32>) -> Self
pub fn set_score(self, input: Option<f32>) -> Self
Model confidence that the entity is relevant. Value range is zero to one, where one is highest confidence.
sourcepub fn get_score(&self) -> &Option<f32>
pub fn get_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, input: f32) -> Self
pub fn group_score(self, input: f32) -> Self
The confidence that all the entities mentioned in the group relate to the same entity.
sourcepub fn set_group_score(self, input: Option<f32>) -> Self
pub fn set_group_score(self, input: Option<f32>) -> Self
The confidence that all the entities mentioned in the group relate to the same entity.
sourcepub fn get_group_score(&self) -> &Option<f32>
pub fn get_group_score(&self) -> &Option<f32>
The confidence that all the entities mentioned in the group relate to the same entity.
sourcepub fn text(self, input: impl Into<String>) -> Self
pub fn text(self, input: impl Into<String>) -> Self
The text in the document that identifies the entity.
sourcepub fn set_text(self, input: Option<String>) -> Self
pub fn set_text(self, input: Option<String>) -> Self
The text in the document that identifies the entity.
sourcepub fn type(self, input: TargetedSentimentEntityType) -> Self
pub fn type(self, input: TargetedSentimentEntityType) -> Self
The type of the entity. Amazon Comprehend supports a variety of entity types.
sourcepub fn set_type(self, input: Option<TargetedSentimentEntityType>) -> Self
pub fn set_type(self, input: Option<TargetedSentimentEntityType>) -> Self
The type of the entity. Amazon Comprehend supports a variety of entity types.
sourcepub fn get_type(&self) -> &Option<TargetedSentimentEntityType>
pub fn get_type(&self) -> &Option<TargetedSentimentEntityType>
The type of the entity. Amazon Comprehend supports a variety of entity types.
sourcepub fn mention_sentiment(self, input: MentionSentiment) -> Self
pub fn mention_sentiment(self, input: MentionSentiment) -> Self
Contains the sentiment and sentiment score for the mention.
sourcepub fn set_mention_sentiment(self, input: Option<MentionSentiment>) -> Self
pub fn set_mention_sentiment(self, input: Option<MentionSentiment>) -> Self
Contains the sentiment and sentiment score for the mention.
sourcepub fn get_mention_sentiment(&self) -> &Option<MentionSentiment>
pub fn get_mention_sentiment(&self) -> &Option<MentionSentiment>
Contains the sentiment and sentiment score for the mention.
sourcepub fn begin_offset(self, input: i32) -> Self
pub fn begin_offset(self, input: i32) -> Self
The offset into the document text where the mention begins.
sourcepub fn set_begin_offset(self, input: Option<i32>) -> Self
pub fn set_begin_offset(self, input: Option<i32>) -> Self
The offset into the document text where the mention begins.
sourcepub fn get_begin_offset(&self) -> &Option<i32>
pub fn get_begin_offset(&self) -> &Option<i32>
The offset into the document text where the mention begins.
sourcepub fn end_offset(self, input: i32) -> Self
pub fn end_offset(self, input: i32) -> Self
The offset into the document text where the mention ends.
sourcepub fn set_end_offset(self, input: Option<i32>) -> Self
pub fn set_end_offset(self, input: Option<i32>) -> Self
The offset into the document text where the mention ends.
sourcepub fn get_end_offset(&self) -> &Option<i32>
pub fn get_end_offset(&self) -> &Option<i32>
The offset into the document text where the mention ends.
sourcepub fn build(self) -> TargetedSentimentMention
pub fn build(self) -> TargetedSentimentMention
Consumes the builder and constructs a TargetedSentimentMention.
Trait Implementations§
source§impl Clone for TargetedSentimentMentionBuilder
impl Clone for TargetedSentimentMentionBuilder
source§fn clone(&self) -> TargetedSentimentMentionBuilder
fn clone(&self) -> TargetedSentimentMentionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for TargetedSentimentMentionBuilder
impl Default for TargetedSentimentMentionBuilder
source§fn default() -> TargetedSentimentMentionBuilder
fn default() -> TargetedSentimentMentionBuilder
source§impl PartialEq for TargetedSentimentMentionBuilder
impl PartialEq for TargetedSentimentMentionBuilder
source§fn eq(&self, other: &TargetedSentimentMentionBuilder) -> bool
fn eq(&self, other: &TargetedSentimentMentionBuilder) -> bool
self and other values to be equal, and is used
by ==.