pub struct DocumentClassifierInputDataConfig {
pub label_delimiter: Option<String>,
pub s3_uri: String,
}Expand description
The input properties for training a document classifier.
For more information on how the input file is formatted, see how-document-classification-training-data.
Fields§
§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.
s3_uri: StringThe 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.
Trait Implementations§
Source§impl Clone for DocumentClassifierInputDataConfig
impl Clone for DocumentClassifierInputDataConfig
Source§fn clone(&self) -> DocumentClassifierInputDataConfig
fn clone(&self) -> DocumentClassifierInputDataConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for DocumentClassifierInputDataConfig
impl Default for DocumentClassifierInputDataConfig
Source§fn default() -> DocumentClassifierInputDataConfig
fn default() -> DocumentClassifierInputDataConfig
Source§impl<'de> Deserialize<'de> for DocumentClassifierInputDataConfig
impl<'de> Deserialize<'de> for DocumentClassifierInputDataConfig
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>,
Source§impl PartialEq for DocumentClassifierInputDataConfig
impl PartialEq for DocumentClassifierInputDataConfig
Source§fn eq(&self, other: &DocumentClassifierInputDataConfig) -> bool
fn eq(&self, other: &DocumentClassifierInputDataConfig) -> bool
self and other values to be equal, and is used by ==.