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§
Sourcefn augment<'a>(&self, token: SegmentedToken<'a>) -> SegmentedToken<'a>
fn augment<'a>(&self, token: SegmentedToken<'a>) -> SegmentedToken<'a>
Apply augmentation function to the given token and return it.