pub trait LabelingFunction: Send + Sync {
// Required methods
fn apply(&self, features: &FileFeatures) -> LabelOutput;
fn name(&self) -> &str;
}Expand description
Trait for labeling functions that emit noisy labels
Required Methods§
Sourcefn apply(&self, features: &FileFeatures) -> LabelOutput
fn apply(&self, features: &FileFeatures) -> LabelOutput
Apply the labeling function to features