#[non_exhaustive]pub struct DatasetDocumentClassifierInputDataConfigBuilder { /* private fields */ }
Expand description
A builder for DatasetDocumentClassifierInputDataConfig
.
Implementations§
source§impl DatasetDocumentClassifierInputDataConfigBuilder
impl DatasetDocumentClassifierInputDataConfigBuilder
sourcepub fn s3_uri(self, input: impl Into<String>) -> Self
pub fn s3_uri(self, input: impl Into<String>) -> Self
The Amazon S3 URI for the input data. The S3 bucket must be in the same Region as the API endpoint that you are calling. The URI can point to a single input file or it can provide the prefix for a collection of input files.
For example, if you use the URI S3://bucketName/prefix
, if the prefix is a single file, Amazon Comprehend uses that file as input. If more than one file begins with the prefix, Amazon Comprehend uses all of them as input.
This parameter is required if you set DataFormat
to COMPREHEND_CSV
.
sourcepub fn set_s3_uri(self, input: Option<String>) -> Self
pub fn set_s3_uri(self, input: Option<String>) -> Self
The Amazon S3 URI for the input data. The S3 bucket must be in the same Region as the API endpoint that you are calling. The URI can point to a single input file or it can provide the prefix for a collection of input files.
For example, if you use the URI S3://bucketName/prefix
, if the prefix is a single file, Amazon Comprehend uses that file as input. If more than one file begins with the prefix, Amazon Comprehend uses all of them as input.
This parameter is required if you set DataFormat
to COMPREHEND_CSV
.
sourcepub fn get_s3_uri(&self) -> &Option<String>
pub fn get_s3_uri(&self) -> &Option<String>
The Amazon S3 URI for the input data. The S3 bucket must be in the same Region as the API endpoint that you are calling. The URI can point to a single input file or it can provide the prefix for a collection of input files.
For example, if you use the URI S3://bucketName/prefix
, if the prefix is a single file, Amazon Comprehend uses that file as input. If more than one file begins with the prefix, Amazon Comprehend uses all of them as input.
This parameter is required if you set DataFormat
to COMPREHEND_CSV
.
sourcepub fn label_delimiter(self, input: impl Into<String>) -> Self
pub fn label_delimiter(self, input: impl Into<String>) -> Self
Indicates the delimiter used to separate each label for training a multi-label classifier. The default delimiter between labels is a pipe (|). You can use a different character as a delimiter (if it's an allowed character) by specifying it under Delimiter for labels. If the training documents use a delimiter other than the default or the delimiter you specify, the labels on that line will be combined to make a single unique label, such as LABELLABELLABEL.
sourcepub fn set_label_delimiter(self, input: Option<String>) -> Self
pub fn set_label_delimiter(self, input: Option<String>) -> Self
Indicates the delimiter used to separate each label for training a multi-label classifier. The default delimiter between labels is a pipe (|). You can use a different character as a delimiter (if it's an allowed character) by specifying it under Delimiter for labels. If the training documents use a delimiter other than the default or the delimiter you specify, the labels on that line will be combined to make a single unique label, such as LABELLABELLABEL.
sourcepub fn get_label_delimiter(&self) -> &Option<String>
pub fn get_label_delimiter(&self) -> &Option<String>
Indicates the delimiter used to separate each label for training a multi-label classifier. The default delimiter between labels is a pipe (|). You can use a different character as a delimiter (if it's an allowed character) by specifying it under Delimiter for labels. If the training documents use a delimiter other than the default or the delimiter you specify, the labels on that line will be combined to make a single unique label, such as LABELLABELLABEL.
sourcepub fn build(
self
) -> Result<DatasetDocumentClassifierInputDataConfig, BuildError>
pub fn build( self ) -> Result<DatasetDocumentClassifierInputDataConfig, BuildError>
Consumes the builder and constructs a DatasetDocumentClassifierInputDataConfig
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DatasetDocumentClassifierInputDataConfigBuilder
impl Clone for DatasetDocumentClassifierInputDataConfigBuilder
source§fn clone(&self) -> DatasetDocumentClassifierInputDataConfigBuilder
fn clone(&self) -> DatasetDocumentClassifierInputDataConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DatasetDocumentClassifierInputDataConfigBuilder
impl Default for DatasetDocumentClassifierInputDataConfigBuilder
source§fn default() -> DatasetDocumentClassifierInputDataConfigBuilder
fn default() -> DatasetDocumentClassifierInputDataConfigBuilder
source§impl PartialEq for DatasetDocumentClassifierInputDataConfigBuilder
impl PartialEq for DatasetDocumentClassifierInputDataConfigBuilder
source§fn eq(&self, other: &DatasetDocumentClassifierInputDataConfigBuilder) -> bool
fn eq(&self, other: &DatasetDocumentClassifierInputDataConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DatasetDocumentClassifierInputDataConfigBuilder
Auto Trait Implementations§
impl Freeze for DatasetDocumentClassifierInputDataConfigBuilder
impl RefUnwindSafe for DatasetDocumentClassifierInputDataConfigBuilder
impl Send for DatasetDocumentClassifierInputDataConfigBuilder
impl Sync for DatasetDocumentClassifierInputDataConfigBuilder
impl Unpin for DatasetDocumentClassifierInputDataConfigBuilder
impl UnwindSafe for DatasetDocumentClassifierInputDataConfigBuilder
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