Trait creature_feature::traits::LinearFixed
source · 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§
sourcefn chunk_size(&self) -> usize
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).