Expose word_tokenizer

This commit is contained in:
Andras Schmelczer 2025-06-14 11:44:06 +01:00
commit 1038f9cee0
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -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>>;