pub trait LinearFixed {
    // Required method
    fn chunk_size(&self) -> usize;
}
Expand description

A trait for featurizers that process their input from left-to-right, exactly once and with a constant size. Examples include NGram<N>, SliceGram and GapGram<A,B>

Required Methods§

source

fn chunk_size(&self) -> usize

must be equal to the ‘n’ of an n-gram, or the total stretch of a GapGram (including both groups and the space between).

Implementors§