#[non_exhaustive]pub struct DatasetDocumentClassifierInputDataConfig {
pub s3_uri: String,
pub label_delimiter: Option<String>,
}
Expand description
Describes the dataset input data configuration for a document classifier model.
For more information on how the input file is formatted, see Preparing training data in the Comprehend Developer Guide.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.s3_uri: 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
.
label_delimiter: 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.
Implementations§
source§impl DatasetDocumentClassifierInputDataConfig
impl DatasetDocumentClassifierInputDataConfig
sourcepub fn s3_uri(&self) -> &str
pub fn s3_uri(&self) -> &str
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) -> Option<&str>
pub fn label_delimiter(&self) -> Option<&str>
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.
source§impl DatasetDocumentClassifierInputDataConfig
impl DatasetDocumentClassifierInputDataConfig
sourcepub fn builder() -> DatasetDocumentClassifierInputDataConfigBuilder
pub fn builder() -> DatasetDocumentClassifierInputDataConfigBuilder
Creates a new builder-style object to manufacture DatasetDocumentClassifierInputDataConfig
.
Trait Implementations§
source§impl Clone for DatasetDocumentClassifierInputDataConfig
impl Clone for DatasetDocumentClassifierInputDataConfig
source§fn clone(&self) -> DatasetDocumentClassifierInputDataConfig
fn clone(&self) -> DatasetDocumentClassifierInputDataConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for DatasetDocumentClassifierInputDataConfig
impl PartialEq for DatasetDocumentClassifierInputDataConfig
source§fn eq(&self, other: &DatasetDocumentClassifierInputDataConfig) -> bool
fn eq(&self, other: &DatasetDocumentClassifierInputDataConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DatasetDocumentClassifierInputDataConfig
Auto Trait Implementations§
impl Freeze for DatasetDocumentClassifierInputDataConfig
impl RefUnwindSafe for DatasetDocumentClassifierInputDataConfig
impl Send for DatasetDocumentClassifierInputDataConfig
impl Sync for DatasetDocumentClassifierInputDataConfig
impl Unpin for DatasetDocumentClassifierInputDataConfig
impl UnwindSafe for DatasetDocumentClassifierInputDataConfig
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