pub struct SyntaxToken {
pub begin_offset: Option<i64>,
pub end_offset: Option<i64>,
pub part_of_speech: Option<PartOfSpeechTag>,
pub text: Option<String>,
pub token_id: Option<i64>,
}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.
Fields§
§begin_offset: Option<i64>The zero-based offset from the beginning of the source text to the first character in the word.
end_offset: Option<i64>The zero-based offset from the beginning of the source text to the last character in the word.
part_of_speech: 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 how-syntax.
text: Option<String>The word that was recognized in the source text.
token_id: Option<i64>A unique identifier for a token.
Trait Implementations§
Source§impl Clone for SyntaxToken
impl Clone for SyntaxToken
Source§fn clone(&self) -> SyntaxToken
fn clone(&self) -> SyntaxToken
Returns a duplicate 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 SyntaxToken
impl Debug for SyntaxToken
Source§impl Default for SyntaxToken
impl Default for SyntaxToken
Source§fn default() -> SyntaxToken
fn default() -> SyntaxToken
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SyntaxToken
impl<'de> Deserialize<'de> for SyntaxToken
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SyntaxToken
impl PartialEq for SyntaxToken
impl StructuralPartialEq for SyntaxToken
Auto Trait Implementations§
impl Freeze for SyntaxToken
impl RefUnwindSafe for SyntaxToken
impl Send for SyntaxToken
impl Sync for SyntaxToken
impl Unpin for SyntaxToken
impl UnwindSafe for SyntaxToken
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