#[non_exhaustive]pub struct InputData {
pub training_documents: Option<BatchDocumentsInputConfig>,
pub test_documents: Option<BatchDocumentsInputConfig>,
/* private fields */
}Expand description
The input data used to train a new ProcessorVersion.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.training_documents: Option<BatchDocumentsInputConfig>The documents used for training the new version.
test_documents: Option<BatchDocumentsInputConfig>The documents used for testing the trained version.
Implementations§
Source§impl InputData
impl InputData
pub fn new() -> Self
Sourcepub fn set_training_documents<T>(self, v: T) -> Selfwhere
T: Into<BatchDocumentsInputConfig>,
pub fn set_training_documents<T>(self, v: T) -> Selfwhere
T: Into<BatchDocumentsInputConfig>,
Sets the value of training_documents.
Sourcepub fn set_or_clear_training_documents<T>(self, v: Option<T>) -> Selfwhere
T: Into<BatchDocumentsInputConfig>,
pub fn set_or_clear_training_documents<T>(self, v: Option<T>) -> Selfwhere
T: Into<BatchDocumentsInputConfig>,
Sets or clears the value of training_documents.
Sourcepub fn set_test_documents<T>(self, v: T) -> Selfwhere
T: Into<BatchDocumentsInputConfig>,
pub fn set_test_documents<T>(self, v: T) -> Selfwhere
T: Into<BatchDocumentsInputConfig>,
Sets the value of test_documents.
Sourcepub fn set_or_clear_test_documents<T>(self, v: Option<T>) -> Selfwhere
T: Into<BatchDocumentsInputConfig>,
pub fn set_or_clear_test_documents<T>(self, v: Option<T>) -> Selfwhere
T: Into<BatchDocumentsInputConfig>,
Sets or clears the value of test_documents.
Trait Implementations§
impl StructuralPartialEq for InputData
Auto Trait Implementations§
impl Freeze for InputData
impl RefUnwindSafe for InputData
impl Send for InputData
impl Sync for InputData
impl Unpin for InputData
impl UnwindSafe for InputData
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
Mutably borrows from an owned value. Read more