Struct aws_sdk_comprehend::model::SyntaxToken
source · [−]#[non_exhaustive]pub struct SyntaxToken { /* private fields */ }Expand description
Represents a work in the input text that was recognized and assigned a part of speech. There is one syntax token record for each word in the source text.
Implementations
sourceimpl SyntaxToken
impl SyntaxToken
sourcepub fn begin_offset(&self) -> Option<i32>
pub fn begin_offset(&self) -> Option<i32>
The zero-based offset from the beginning of the source text to the first character in the word.
sourcepub fn end_offset(&self) -> Option<i32>
pub fn end_offset(&self) -> Option<i32>
The zero-based offset from the beginning of the source text to the last character in the word.
sourcepub fn part_of_speech(&self) -> Option<&PartOfSpeechTag>
pub fn part_of_speech(&self) -> Option<&PartOfSpeechTag>
Provides the part of speech label and the confidence level that Amazon Comprehend has that the part of speech was correctly identified. For more information, see Syntax in the Comprehend Developer Guide.
sourceimpl SyntaxToken
impl SyntaxToken
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SyntaxToken.
Trait Implementations
sourceimpl Clone for SyntaxToken
impl Clone for SyntaxToken
sourcefn clone(&self) -> SyntaxToken
fn clone(&self) -> SyntaxToken
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for SyntaxToken
impl Debug for SyntaxToken
sourceimpl PartialEq<SyntaxToken> for SyntaxToken
impl PartialEq<SyntaxToken> for SyntaxToken
sourcefn eq(&self, other: &SyntaxToken) -> bool
fn eq(&self, other: &SyntaxToken) -> bool
impl StructuralPartialEq for SyntaxToken
Auto Trait Implementations
impl RefUnwindSafe for SyntaxToken
impl Send for SyntaxToken
impl Sync for SyntaxToken
impl Unpin for SyntaxToken
impl UnwindSafe for SyntaxToken
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more