1 2 3 4 5 6
/// A tokenizer splits text into a sequence of tokens. Implement this trait to use this crate with /// your own tokenizer. pub trait Tokenizer { /// Tokenizes the input text. fn tokenize(&self, input_text: &str) -> Vec<String>; }