#[non_exhaustive]pub struct DatasetEntityRecognizerDocumentsBuilder { /* private fields */ }Expand description
A builder for DatasetEntityRecognizerDocuments.
Implementations§
source§impl DatasetEntityRecognizerDocumentsBuilder
impl DatasetEntityRecognizerDocumentsBuilder
sourcepub fn s3_uri(self, input: impl Into<String>) -> Self
pub fn s3_uri(self, input: impl Into<String>) -> Self
Specifies the Amazon S3 location where the documents for the dataset are located.
This field is required.sourcepub fn set_s3_uri(self, input: Option<String>) -> Self
pub fn set_s3_uri(self, input: Option<String>) -> Self
Specifies the Amazon S3 location where the documents for the dataset are located.
sourcepub fn get_s3_uri(&self) -> &Option<String>
pub fn get_s3_uri(&self) -> &Option<String>
Specifies the Amazon S3 location where the documents for the dataset are located.
sourcepub fn input_format(self, input: InputFormat) -> Self
pub fn input_format(self, input: InputFormat) -> Self
Specifies how the text in an input file should be processed. This is optional, and the default is ONE_DOC_PER_LINE. ONE_DOC_PER_FILE - Each file is considered a separate document. Use this option when you are processing large documents, such as newspaper articles or scientific papers. ONE_DOC_PER_LINE - Each line in a file is considered a separate document. Use this option when you are processing many short documents, such as text messages.
sourcepub fn set_input_format(self, input: Option<InputFormat>) -> Self
pub fn set_input_format(self, input: Option<InputFormat>) -> Self
Specifies how the text in an input file should be processed. This is optional, and the default is ONE_DOC_PER_LINE. ONE_DOC_PER_FILE - Each file is considered a separate document. Use this option when you are processing large documents, such as newspaper articles or scientific papers. ONE_DOC_PER_LINE - Each line in a file is considered a separate document. Use this option when you are processing many short documents, such as text messages.
sourcepub fn get_input_format(&self) -> &Option<InputFormat>
pub fn get_input_format(&self) -> &Option<InputFormat>
Specifies how the text in an input file should be processed. This is optional, and the default is ONE_DOC_PER_LINE. ONE_DOC_PER_FILE - Each file is considered a separate document. Use this option when you are processing large documents, such as newspaper articles or scientific papers. ONE_DOC_PER_LINE - Each line in a file is considered a separate document. Use this option when you are processing many short documents, such as text messages.
sourcepub fn build(self) -> Result<DatasetEntityRecognizerDocuments, BuildError>
pub fn build(self) -> Result<DatasetEntityRecognizerDocuments, BuildError>
Consumes the builder and constructs a DatasetEntityRecognizerDocuments.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DatasetEntityRecognizerDocumentsBuilder
impl Clone for DatasetEntityRecognizerDocumentsBuilder
source§fn clone(&self) -> DatasetEntityRecognizerDocumentsBuilder
fn clone(&self) -> DatasetEntityRecognizerDocumentsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for DatasetEntityRecognizerDocumentsBuilder
impl Default for DatasetEntityRecognizerDocumentsBuilder
source§fn default() -> DatasetEntityRecognizerDocumentsBuilder
fn default() -> DatasetEntityRecognizerDocumentsBuilder
source§impl PartialEq for DatasetEntityRecognizerDocumentsBuilder
impl PartialEq for DatasetEntityRecognizerDocumentsBuilder
source§fn eq(&self, other: &DatasetEntityRecognizerDocumentsBuilder) -> bool
fn eq(&self, other: &DatasetEntityRecognizerDocumentsBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DatasetEntityRecognizerDocumentsBuilder
Auto Trait Implementations§
impl Freeze for DatasetEntityRecognizerDocumentsBuilder
impl RefUnwindSafe for DatasetEntityRecognizerDocumentsBuilder
impl Send for DatasetEntityRecognizerDocumentsBuilder
impl Sync for DatasetEntityRecognizerDocumentsBuilder
impl Unpin for DatasetEntityRecognizerDocumentsBuilder
impl UnwindSafe for DatasetEntityRecognizerDocumentsBuilder
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