Trait Augmenter

Source
pub trait Augmenter {
    // Required method
    fn augment<'a>(&self, token: SegmentedToken<'a>) -> SegmentedToken<'a>;
}
Expand description

Simplified Interface that assumes one token in, one token out.

Usable for augmentation and normalization.

Required Methods§

Source

fn augment<'a>(&self, token: SegmentedToken<'a>) -> SegmentedToken<'a>

Apply augmentation function to the given token and return it.

Implementors§