#[non_exhaustive]pub struct EntityRecognizerDocuments {
pub s3_uri: 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: 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 Amazon Web Services 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§
source§impl EntityRecognizerDocuments
impl EntityRecognizerDocuments
sourcepub fn s3_uri(&self) -> &str
pub fn s3_uri(&self) -> &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 Amazon Web Services 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.
source§impl EntityRecognizerDocuments
impl EntityRecognizerDocuments
sourcepub fn builder() -> EntityRecognizerDocumentsBuilder
pub fn builder() -> EntityRecognizerDocumentsBuilder
Creates a new builder-style object to manufacture EntityRecognizerDocuments
.
Trait Implementations§
source§impl Clone for EntityRecognizerDocuments
impl Clone for EntityRecognizerDocuments
source§fn clone(&self) -> EntityRecognizerDocuments
fn clone(&self) -> EntityRecognizerDocuments
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EntityRecognizerDocuments
impl Debug for EntityRecognizerDocuments
source§impl PartialEq for EntityRecognizerDocuments
impl PartialEq for EntityRecognizerDocuments
source§fn eq(&self, other: &EntityRecognizerDocuments) -> bool
fn eq(&self, other: &EntityRecognizerDocuments) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EntityRecognizerDocuments
Auto Trait Implementations§
impl Freeze for EntityRecognizerDocuments
impl RefUnwindSafe for EntityRecognizerDocuments
impl Send for EntityRecognizerDocuments
impl Sync for EntityRecognizerDocuments
impl Unpin for EntityRecognizerDocuments
impl UnwindSafe for EntityRecognizerDocuments
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