#[non_exhaustive]pub struct EntityRecognizerDocuments {
pub s3_uri: Option<String>,
pub test_s3_uri: Option<String>,
pub input_format: Option<InputFormat>,
}Expand description
Describes the training documents submitted with an entity recognizer.
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: Option<String>Specifies the Amazon S3 location where the training documents for an entity recognizer are located. The URI must be in the same region as the API endpoint that you are calling.
test_s3_uri: Option<String>Specifies the Amazon S3 location where the test documents for an entity recognizer are located. The URI must be in the same AWS Region as the API endpoint that you are calling.
input_format: Option<InputFormat>Specifies how the text in an input file should be processed. This is optional, and the default is ONE_DOC_PER_LINE. ONE_DOC_PER_FILE - Each file is considered a separate document. Use this option when you are processing large documents, such as newspaper articles or scientific papers. ONE_DOC_PER_LINE - Each line in a file is considered a separate document. Use this option when you are processing many short documents, such as text messages.
Implementations
sourceimpl EntityRecognizerDocuments
impl EntityRecognizerDocuments
sourcepub fn s3_uri(&self) -> Option<&str>
pub fn s3_uri(&self) -> Option<&str>
Specifies the Amazon S3 location where the training documents for an entity recognizer are located. The URI must be in the same region as the API endpoint that you are calling.
sourcepub fn test_s3_uri(&self) -> Option<&str>
pub fn test_s3_uri(&self) -> Option<&str>
Specifies the Amazon S3 location where the test documents for an entity recognizer are located. The URI must be in the same AWS Region as the API endpoint that you are calling.
sourcepub fn input_format(&self) -> Option<&InputFormat>
pub fn input_format(&self) -> Option<&InputFormat>
Specifies how the text in an input file should be processed. This is optional, and the default is ONE_DOC_PER_LINE. ONE_DOC_PER_FILE - Each file is considered a separate document. Use this option when you are processing large documents, such as newspaper articles or scientific papers. ONE_DOC_PER_LINE - Each line in a file is considered a separate document. Use this option when you are processing many short documents, such as text messages.
sourceimpl EntityRecognizerDocuments
impl EntityRecognizerDocuments
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture EntityRecognizerDocuments
Trait Implementations
sourceimpl Clone for EntityRecognizerDocuments
impl Clone for EntityRecognizerDocuments
sourcefn clone(&self) -> EntityRecognizerDocuments
fn clone(&self) -> EntityRecognizerDocuments
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 Debug for EntityRecognizerDocuments
impl Debug for EntityRecognizerDocuments
sourceimpl PartialEq<EntityRecognizerDocuments> for EntityRecognizerDocuments
impl PartialEq<EntityRecognizerDocuments> for EntityRecognizerDocuments
sourcefn eq(&self, other: &EntityRecognizerDocuments) -> bool
fn eq(&self, other: &EntityRecognizerDocuments) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &EntityRecognizerDocuments) -> bool
fn ne(&self, other: &EntityRecognizerDocuments) -> bool
This method tests for !=.
impl StructuralPartialEq for EntityRecognizerDocuments
Auto Trait Implementations
impl RefUnwindSafe for EntityRecognizerDocuments
impl Send for EntityRecognizerDocuments
impl Sync for EntityRecognizerDocuments
impl Unpin for EntityRecognizerDocuments
impl UnwindSafe for EntityRecognizerDocuments
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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