#[non_exhaustive]pub struct EntityRecognizerInputDataConfig {
pub data_format: Option<EntityRecognizerDataFormat>,
pub entity_types: Option<Vec<EntityTypesListItem>>,
pub documents: Option<EntityRecognizerDocuments>,
pub annotations: Option<EntityRecognizerAnnotations>,
pub entity_list: Option<EntityRecognizerEntityList>,
pub augmented_manifests: Option<Vec<AugmentedManifestsListItem>>,
}
Expand description
Specifies the format and location of the input data.
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.data_format: Option<EntityRecognizerDataFormat>
The format of your training data:
-
COMPREHEND_CSV
: A CSV file that supplements your training documents. The CSV file contains information about the custom entities that your trained model will detect. The required format of the file depends on whether you are providing annotations or an entity list.If you use this value, you must provide your CSV file by using either the
Annotations
orEntityList
parameters. You must provide your training documents by using theDocuments
parameter. -
AUGMENTED_MANIFEST
: A labeled dataset that is produced by Amazon SageMaker Ground Truth. This file is in JSON lines format. Each line is a complete JSON object that contains a training document and its labels. Each label annotates a named entity in the training document.If you use this value, you must provide the
AugmentedManifests
parameter in your request.
If you don't specify a value, Amazon Comprehend uses COMPREHEND_CSV
as the default.
entity_types: Option<Vec<EntityTypesListItem>>
The entity types in the labeled training data that Amazon Comprehend uses to train the custom entity recognizer. Any entity types that you don't specify are ignored.
A maximum of 25 entity types can be used at one time to train an entity recognizer. Entity types must not contain the following invalid characters: \n (line break), \\n (escaped line break), \r (carriage return), \\r (escaped carriage return), \t (tab), \\t (escaped tab), space, and , (comma).
documents: Option<EntityRecognizerDocuments>
The S3 location of the folder that contains the training documents for your custom entity recognizer.
This parameter is required if you set DataFormat
to COMPREHEND_CSV
.
annotations: Option<EntityRecognizerAnnotations>
The S3 location of the CSV file that annotates your training documents.
entity_list: Option<EntityRecognizerEntityList>
The S3 location of the CSV file that has the entity list for your custom entity recognizer.
augmented_manifests: Option<Vec<AugmentedManifestsListItem>>
A list of augmented manifest files that provide training data for your custom model. An augmented manifest file is a labeled dataset that is produced by Amazon SageMaker Ground Truth.
This parameter is required if you set DataFormat
to AUGMENTED_MANIFEST
.
Implementations
The format of your training data:
-
COMPREHEND_CSV
: A CSV file that supplements your training documents. The CSV file contains information about the custom entities that your trained model will detect. The required format of the file depends on whether you are providing annotations or an entity list.If you use this value, you must provide your CSV file by using either the
Annotations
orEntityList
parameters. You must provide your training documents by using theDocuments
parameter. -
AUGMENTED_MANIFEST
: A labeled dataset that is produced by Amazon SageMaker Ground Truth. This file is in JSON lines format. Each line is a complete JSON object that contains a training document and its labels. Each label annotates a named entity in the training document.If you use this value, you must provide the
AugmentedManifests
parameter in your request.
If you don't specify a value, Amazon Comprehend uses COMPREHEND_CSV
as the default.
The entity types in the labeled training data that Amazon Comprehend uses to train the custom entity recognizer. Any entity types that you don't specify are ignored.
A maximum of 25 entity types can be used at one time to train an entity recognizer. Entity types must not contain the following invalid characters: \n (line break), \\n (escaped line break), \r (carriage return), \\r (escaped carriage return), \t (tab), \\t (escaped tab), space, and , (comma).
The S3 location of the folder that contains the training documents for your custom entity recognizer.
This parameter is required if you set DataFormat
to COMPREHEND_CSV
.
The S3 location of the CSV file that annotates your training documents.
The S3 location of the CSV file that has the entity list for your custom entity recognizer.
A list of augmented manifest files that provide training data for your custom model. An augmented manifest file is a labeled dataset that is produced by Amazon SageMaker Ground Truth.
This parameter is required if you set DataFormat
to AUGMENTED_MANIFEST
.
Creates a new builder-style object to manufacture EntityRecognizerInputDataConfig
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl Send for EntityRecognizerInputDataConfig
impl Sync for EntityRecognizerInputDataConfig
impl Unpin for EntityRecognizerInputDataConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more