#[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 ==.impl StructuralPartialEq for TargetedSentimentEntityBuilder
Auto Trait Implementations§
impl Freeze for TargetedSentimentEntityBuilder
impl RefUnwindSafe for TargetedSentimentEntityBuilder
impl Send for TargetedSentimentEntityBuilder
impl Sync for TargetedSentimentEntityBuilder
impl Unpin for TargetedSentimentEntityBuilder
impl UnwindSafe for TargetedSentimentEntityBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more