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.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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) -> Option<&[i32]>
pub fn descriptive_mention_index(&self) -> Option<&[i32]>
One or more index into the Mentions array that provides the best name for the entity group.
sourcepub fn mentions(&self) -> Option<&[TargetedSentimentMention]>
pub fn mentions(&self) -> Option<&[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.
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
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 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
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TargetedSentimentEntity
Auto Trait Implementations§
impl RefUnwindSafe for TargetedSentimentEntity
impl Send for TargetedSentimentEntity
impl Sync for TargetedSentimentEntity
impl Unpin for TargetedSentimentEntity
impl UnwindSafe for TargetedSentimentEntity
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more