pub struct EntityRecognizerInputDataConfig {
pub annotations: Option<EntityRecognizerAnnotations>,
pub augmented_manifests: Option<Vec<AugmentedManifestsListItem>>,
pub data_format: Option<String>,
pub documents: Option<EntityRecognizerDocuments>,
pub entity_list: Option<EntityRecognizerEntityList>,
pub entity_types: Vec<EntityTypesListItem>,
}
Expand description
Specifies the format and location of the input data.
Fields
annotations: Option<EntityRecognizerAnnotations>
The S3 location of the CSV file that annotates your training documents.
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
.
data_format: Option<String>
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.
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
.
entity_list: Option<EntityRecognizerEntityList>
The S3 location of the CSV file that has the entity list for your custom entity recognizer.
entity_types: 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).
Trait Implementations
sourceimpl Clone for EntityRecognizerInputDataConfig
impl Clone for EntityRecognizerInputDataConfig
sourcefn clone(&self) -> EntityRecognizerInputDataConfig
fn clone(&self) -> EntityRecognizerInputDataConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for EntityRecognizerInputDataConfig
impl Default for EntityRecognizerInputDataConfig
sourcefn default() -> EntityRecognizerInputDataConfig
fn default() -> EntityRecognizerInputDataConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for EntityRecognizerInputDataConfig
impl<'de> Deserialize<'de> for EntityRecognizerInputDataConfig
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<EntityRecognizerInputDataConfig> for EntityRecognizerInputDataConfig
impl PartialEq<EntityRecognizerInputDataConfig> for EntityRecognizerInputDataConfig
sourcefn eq(&self, other: &EntityRecognizerInputDataConfig) -> bool
fn eq(&self, other: &EntityRecognizerInputDataConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &EntityRecognizerInputDataConfig) -> bool
fn ne(&self, other: &EntityRecognizerInputDataConfig) -> bool
This method tests for !=
.
impl StructuralPartialEq for EntityRecognizerInputDataConfig
Auto Trait Implementations
impl RefUnwindSafe for EntityRecognizerInputDataConfig
impl Send for EntityRecognizerInputDataConfig
impl Sync for EntityRecognizerInputDataConfig
impl Unpin for EntityRecognizerInputDataConfig
impl UnwindSafe for EntityRecognizerInputDataConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more