Expose word_tokenizer
This commit is contained in:
parent
744decb92f
commit
1038f9cee0
1 changed files with 6 additions and 5 deletions
|
|
@ -3,4 +3,5 @@ use token::Token;
|
|||
pub mod token;
|
||||
pub mod word_tokenizer;
|
||||
|
||||
/// A trait for tokenizers that take a string and return a list of tokens.
|
||||
pub type Tokenizer<T> = dyn Fn(&str) -> Vec<Token<T>>;
|
||||
|
|
|
|||
Loading…
Reference in a new issue