#[non_exhaustive]pub struct EntityRecognizerDocumentsBuilder { /* private fields */ }Expand description
A builder for EntityRecognizerDocuments.
Implementations§
source§impl EntityRecognizerDocumentsBuilder
impl EntityRecognizerDocumentsBuilder
sourcepub fn s3_uri(self, input: impl Into<String>) -> Self
pub fn s3_uri(self, input: impl Into<String>) -> Self
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 set_s3_uri(self, input: Option<String>) -> Self
pub fn set_s3_uri(self, input: Option<String>) -> Self
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 get_s3_uri(&self) -> &Option<String>
pub fn get_s3_uri(&self) -> &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.
sourcepub fn test_s3_uri(self, input: impl Into<String>) -> Self
pub fn test_s3_uri(self, input: impl Into<String>) -> Self
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 set_test_s3_uri(self, input: Option<String>) -> Self
pub fn set_test_s3_uri(self, input: Option<String>) -> Self
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 get_test_s3_uri(&self) -> &Option<String>
pub fn get_test_s3_uri(&self) -> &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.
sourcepub fn input_format(self, input: InputFormat) -> Self
pub fn input_format(self, input: InputFormat) -> Self
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.
sourcepub fn set_input_format(self, input: Option<InputFormat>) -> Self
pub fn set_input_format(self, input: Option<InputFormat>) -> Self
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.
sourcepub fn get_input_format(&self) -> &Option<InputFormat>
pub fn get_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.
sourcepub fn build(self) -> EntityRecognizerDocuments
pub fn build(self) -> EntityRecognizerDocuments
Consumes the builder and constructs a EntityRecognizerDocuments.
Trait Implementations§
source§impl Clone for EntityRecognizerDocumentsBuilder
impl Clone for EntityRecognizerDocumentsBuilder
source§fn clone(&self) -> EntityRecognizerDocumentsBuilder
fn clone(&self) -> EntityRecognizerDocumentsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for EntityRecognizerDocumentsBuilder
impl Default for EntityRecognizerDocumentsBuilder
source§fn default() -> EntityRecognizerDocumentsBuilder
fn default() -> EntityRecognizerDocumentsBuilder
source§impl PartialEq for EntityRecognizerDocumentsBuilder
impl PartialEq for EntityRecognizerDocumentsBuilder
source§fn eq(&self, other: &EntityRecognizerDocumentsBuilder) -> bool
fn eq(&self, other: &EntityRecognizerDocumentsBuilder) -> bool
self and other values to be equal, and is used
by ==.