Struct aws_sdk_comprehend::types::builders::SyntaxTokenBuilder
source · #[non_exhaustive]pub struct SyntaxTokenBuilder { /* private fields */ }
Expand description
A builder for SyntaxToken
.
Implementations§
source§impl SyntaxTokenBuilder
impl SyntaxTokenBuilder
sourcepub fn set_token_id(self, input: Option<i32>) -> Self
pub fn set_token_id(self, input: Option<i32>) -> Self
A unique identifier for a token.
sourcepub fn get_token_id(&self) -> &Option<i32>
pub fn get_token_id(&self) -> &Option<i32>
A unique identifier for a token.
sourcepub fn text(self, input: impl Into<String>) -> Self
pub fn text(self, input: impl Into<String>) -> Self
The word that was recognized in the source text.
sourcepub fn set_text(self, input: Option<String>) -> Self
pub fn set_text(self, input: Option<String>) -> Self
The word that was recognized in the source text.
sourcepub fn begin_offset(self, input: i32) -> Self
pub fn begin_offset(self, input: i32) -> Self
The zero-based offset from the beginning of the source text to the first character in the word.
sourcepub fn set_begin_offset(self, input: Option<i32>) -> Self
pub fn set_begin_offset(self, input: Option<i32>) -> Self
The zero-based offset from the beginning of the source text to the first character in the word.
sourcepub fn get_begin_offset(&self) -> &Option<i32>
pub fn get_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, input: i32) -> Self
pub fn end_offset(self, input: i32) -> Self
The zero-based offset from the beginning of the source text to the last character in the word.
sourcepub fn set_end_offset(self, input: Option<i32>) -> Self
pub fn set_end_offset(self, input: Option<i32>) -> Self
The zero-based offset from the beginning of the source text to the last character in the word.
sourcepub fn get_end_offset(&self) -> &Option<i32>
pub fn get_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, input: PartOfSpeechTag) -> Self
pub fn part_of_speech(self, input: PartOfSpeechTag) -> Self
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.
sourcepub fn set_part_of_speech(self, input: Option<PartOfSpeechTag>) -> Self
pub fn set_part_of_speech(self, input: Option<PartOfSpeechTag>) -> Self
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.
sourcepub fn get_part_of_speech(&self) -> &Option<PartOfSpeechTag>
pub fn get_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.
sourcepub fn build(self) -> SyntaxToken
pub fn build(self) -> SyntaxToken
Consumes the builder and constructs a SyntaxToken
.
Trait Implementations§
source§impl Clone for SyntaxTokenBuilder
impl Clone for SyntaxTokenBuilder
source§fn clone(&self) -> SyntaxTokenBuilder
fn clone(&self) -> SyntaxTokenBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SyntaxTokenBuilder
impl Debug for SyntaxTokenBuilder
source§impl Default for SyntaxTokenBuilder
impl Default for SyntaxTokenBuilder
source§fn default() -> SyntaxTokenBuilder
fn default() -> SyntaxTokenBuilder
source§impl PartialEq for SyntaxTokenBuilder
impl PartialEq for SyntaxTokenBuilder
source§fn eq(&self, other: &SyntaxTokenBuilder) -> bool
fn eq(&self, other: &SyntaxTokenBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.