Skip to main content

edge_ngrams

Function edge_ngrams 

Source
pub fn edge_ngrams(token: &str, min: usize, max: usize) -> Vec<String>
Expand description

addok.helpers.text.compute_edge_ngrams: prefixes from min chars up to, but excluding, the token itself, on the token cut to max + 1 chars.