Struct aws_sdk_comprehend::types::TargetedSentimentEntity
source · #[non_exhaustive]pub struct TargetedSentimentEntity {
pub descriptive_mention_index: Option<Vec<i32>>,
pub mentions: Option<Vec<TargetedSentimentMention>>,
}
Expand description
Information about one of the entities found by targeted sentiment analysis.
For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.
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.descriptive_mention_index: Option<Vec<i32>>
One or more index into the Mentions array that provides the best name for the entity group.
mentions: Option<Vec<TargetedSentimentMention>>
An array of mentions of the entity in the document. The array represents a co-reference group. See Co-reference group for an example.
Implementations§
source§impl TargetedSentimentEntity
impl TargetedSentimentEntity
sourcepub fn descriptive_mention_index(&self) -> &[i32]
pub fn descriptive_mention_index(&self) -> &[i32]
One or more index into the Mentions array that provides the best name for the entity group.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .descriptive_mention_index.is_none()
.
sourcepub fn mentions(&self) -> &[TargetedSentimentMention]
pub fn mentions(&self) -> &[TargetedSentimentMention]
An array of mentions of the entity in the document. The array represents a co-reference group. See Co-reference group for an example.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .mentions.is_none()
.
source§impl TargetedSentimentEntity
impl TargetedSentimentEntity
sourcepub fn builder() -> TargetedSentimentEntityBuilder
pub fn builder() -> TargetedSentimentEntityBuilder
Creates a new builder-style object to manufacture TargetedSentimentEntity
.
Trait Implementations§
source§impl Clone for TargetedSentimentEntity
impl Clone for TargetedSentimentEntity
source§fn clone(&self) -> TargetedSentimentEntity
fn clone(&self) -> TargetedSentimentEntity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TargetedSentimentEntity
impl Debug for TargetedSentimentEntity
source§impl PartialEq for TargetedSentimentEntity
impl PartialEq for TargetedSentimentEntity
source§fn eq(&self, other: &TargetedSentimentEntity) -> bool
fn eq(&self, other: &TargetedSentimentEntity) -> bool
self
and other
values to be equal, and is used
by ==
.