pub struct TaskEvalConfig {Show 13 fields
pub tasks: Vec<Task>,
pub datasets: Vec<DatasetId>,
pub backends: Vec<String>,
pub max_examples: Option<usize>,
pub seed: Option<u64>,
pub require_cached: bool,
pub relation_threshold: f32,
pub robustness: bool,
pub compute_familiarity: bool,
pub temporal_stratification: bool,
pub confidence_intervals: bool,
pub custom_coref_resolver: Option<Arc<dyn CoreferenceResolver>>,
pub coref_use_gold_mentions: bool,
}Expand description
Configuration for task evaluation.
Fields§
§tasks: Vec<Task>Which tasks to evaluate
datasets: Vec<DatasetId>Which datasets to use (if empty, uses all suitable datasets for each task)
backends: Vec<String>Which backends to test (if empty, uses all compatible backends)
max_examples: Option<usize>Maximum number of examples per dataset (for quick testing)
seed: Option<u64>Random seed for sampling (for reproducibility and varied testing)
require_cached: boolWhether to skip datasets that aren’t cached
relation_threshold: f32Confidence threshold for relation extraction (default: 0.5)
robustness: boolWhether to run robustness testing (perturbations)
compute_familiarity: boolWhether to compute familiarity scores for zero-shot evaluations
temporal_stratification: boolWhether to compute temporal stratification (if dataset supports it)
confidence_intervals: boolWhether to compute confidence intervals for metrics
custom_coref_resolver: Option<Arc<dyn CoreferenceResolver>>Optional custom coreference resolver (for use with matryoshka-box trained models) If None, resolver is created from backend_name using create_coref_resolver() Uses Arc to allow sharing across multiple evaluation calls
coref_use_gold_mentions: boolCoreference evaluation mode:
false(default): run NER to get mentions, then resolve coref on those mentions.true: use GOLD mentions from the coref dataset and evaluate clustering only.
This is critical for datasets like CorefUD where mentions include pronouns/nominals and empty nodes (zero anaphora) that typical NER backends do not emit.
Trait Implementations§
Source§impl Debug for TaskEvalConfig
impl Debug for TaskEvalConfig
Source§impl Default for TaskEvalConfig
impl Default for TaskEvalConfig
Source§impl<'de> Deserialize<'de> for TaskEvalConfig
impl<'de> Deserialize<'de> for TaskEvalConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl !RefUnwindSafe for TaskEvalConfig
impl !UnwindSafe for TaskEvalConfig
impl Freeze for TaskEvalConfig
impl Send for TaskEvalConfig
impl Sync for TaskEvalConfig
impl Unpin for TaskEvalConfig
impl UnsafeUnpin for TaskEvalConfig
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
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