pub struct EntrenarExporter { /* private fields */ }Expand description
Exporter for entrenar training data
Implementations§
Source§impl EntrenarExporter
impl EntrenarExporter
Sourcepub fn new(config: ExportConfig) -> Self
pub fn new(config: ExportConfig) -> Self
Create a new exporter with configuration
Sourcepub fn to_example(
&self,
tuple: &VerifiedTuple,
id: &str,
) -> CodeTranslationExample
pub fn to_example( &self, tuple: &VerifiedTuple, id: &str, ) -> CodeTranslationExample
Convert verified tuple to training example
Sourcepub fn export(
&self,
tuples: &[VerifiedTuple],
output_dir: &Path,
) -> Result<ExportStats>
pub fn export( &self, tuples: &[VerifiedTuple], output_dir: &Path, ) -> Result<ExportStats>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EntrenarExporter
impl RefUnwindSafe for EntrenarExporter
impl Send for EntrenarExporter
impl Sync for EntrenarExporter
impl Unpin for EntrenarExporter
impl UnsafeUnpin for EntrenarExporter
impl UnwindSafe for EntrenarExporter
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
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>
Converts
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>
Converts
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