pub struct TaskEvalConfigBuilder { /* private fields */ }Expand description
Builder for TaskEvalConfig.
Implementations§
Source§impl TaskEvalConfigBuilder
impl TaskEvalConfigBuilder
Sourcepub fn with_tasks(self, tasks: Vec<Task>) -> Self
pub fn with_tasks(self, tasks: Vec<Task>) -> Self
Set tasks to evaluate.
Sourcepub fn with_datasets(self, datasets: Vec<DatasetId>) -> Self
pub fn with_datasets(self, datasets: Vec<DatasetId>) -> Self
Set datasets to use.
Sourcepub fn add_dataset(self, dataset: DatasetId) -> Self
pub fn add_dataset(self, dataset: DatasetId) -> Self
Add a dataset.
Sourcepub fn with_backends(self, backends: Vec<String>) -> Self
pub fn with_backends(self, backends: Vec<String>) -> Self
Set backends to test.
Sourcepub fn add_backend(self, backend: String) -> Self
pub fn add_backend(self, backend: String) -> Self
Add a backend.
Sourcepub fn with_max_examples(self, max: usize) -> Self
pub fn with_max_examples(self, max: usize) -> Self
Set maximum examples per dataset.
If max is 0, this is treated as unlimited (None).
Otherwise, limits evaluation to the specified number of examples per dataset.
Sourcepub fn require_cached(self, require: bool) -> Self
pub fn require_cached(self, require: bool) -> Self
Require datasets to be cached (skip downloads).
Sourcepub fn with_relation_threshold(self, threshold: f32) -> Self
pub fn with_relation_threshold(self, threshold: f32) -> Self
Set relation extraction threshold.
Sourcepub fn with_robustness(self, enable: bool) -> Self
pub fn with_robustness(self, enable: bool) -> Self
Enable robustness testing.
Sourcepub fn with_familiarity(self, enable: bool) -> Self
pub fn with_familiarity(self, enable: bool) -> Self
Enable familiarity computation.
Sourcepub fn with_temporal_stratification(self, enable: bool) -> Self
pub fn with_temporal_stratification(self, enable: bool) -> Self
Enable temporal stratification.
Sourcepub fn with_confidence_intervals(self, enable: bool) -> Self
pub fn with_confidence_intervals(self, enable: bool) -> Self
Enable confidence intervals.
Sourcepub fn with_coref_use_gold_mentions(self, enable: bool) -> Self
pub fn with_coref_use_gold_mentions(self, enable: bool) -> Self
Coreference evaluation: use gold mentions (evaluate clustering only).
Sourcepub fn build(self) -> TaskEvalConfig
pub fn build(self) -> TaskEvalConfig
Build the configuration.
Trait Implementations§
Source§impl Clone for TaskEvalConfigBuilder
impl Clone for TaskEvalConfigBuilder
Source§fn clone(&self) -> TaskEvalConfigBuilder
fn clone(&self) -> TaskEvalConfigBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TaskEvalConfigBuilder
impl Debug for TaskEvalConfigBuilder
Auto Trait Implementations§
impl Freeze for TaskEvalConfigBuilder
impl RefUnwindSafe for TaskEvalConfigBuilder
impl Send for TaskEvalConfigBuilder
impl Sync for TaskEvalConfigBuilder
impl Unpin for TaskEvalConfigBuilder
impl UnsafeUnpin for TaskEvalConfigBuilder
impl UnwindSafe for TaskEvalConfigBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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>
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