#[non_exhaustive]pub struct TargetedSentimentEntityBuilder { /* private fields */ }Expand description
A builder for TargetedSentimentEntity.
Implementations§
source§impl TargetedSentimentEntityBuilder
impl TargetedSentimentEntityBuilder
sourcepub fn descriptive_mention_index(self, input: i32) -> Self
pub fn descriptive_mention_index(self, input: i32) -> Self
Appends an item to descriptive_mention_index.
To override the contents of this collection use set_descriptive_mention_index.
One or more index into the Mentions array that provides the best name for the entity group.
sourcepub fn set_descriptive_mention_index(self, input: Option<Vec<i32>>) -> Self
pub fn set_descriptive_mention_index(self, input: Option<Vec<i32>>) -> Self
One or more index into the Mentions array that provides the best name for the entity group.
sourcepub fn get_descriptive_mention_index(&self) -> &Option<Vec<i32>>
pub fn get_descriptive_mention_index(&self) -> &Option<Vec<i32>>
One or more index into the Mentions array that provides the best name for the entity group.
sourcepub fn mentions(self, input: TargetedSentimentMention) -> Self
pub fn mentions(self, input: TargetedSentimentMention) -> Self
Appends an item to mentions.
To override the contents of this collection use set_mentions.
An array of mentions of the entity in the document. The array represents a co-reference group. See Co-reference group for an example.
sourcepub fn set_mentions(self, input: Option<Vec<TargetedSentimentMention>>) -> Self
pub fn set_mentions(self, input: Option<Vec<TargetedSentimentMention>>) -> Self
An array of mentions of the entity in the document. The array represents a co-reference group. See Co-reference group for an example.
sourcepub fn get_mentions(&self) -> &Option<Vec<TargetedSentimentMention>>
pub fn get_mentions(&self) -> &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.
sourcepub fn build(self) -> TargetedSentimentEntity
pub fn build(self) -> TargetedSentimentEntity
Consumes the builder and constructs a TargetedSentimentEntity.
Trait Implementations§
source§impl Clone for TargetedSentimentEntityBuilder
impl Clone for TargetedSentimentEntityBuilder
source§fn clone(&self) -> TargetedSentimentEntityBuilder
fn clone(&self) -> TargetedSentimentEntityBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for TargetedSentimentEntityBuilder
impl Default for TargetedSentimentEntityBuilder
source§fn default() -> TargetedSentimentEntityBuilder
fn default() -> TargetedSentimentEntityBuilder
source§impl PartialEq for TargetedSentimentEntityBuilder
impl PartialEq for TargetedSentimentEntityBuilder
source§fn eq(&self, other: &TargetedSentimentEntityBuilder) -> bool
fn eq(&self, other: &TargetedSentimentEntityBuilder) -> bool
self and other values to be equal, and is used
by ==.