You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The main function of the rten-text crate is to provide a relatively lightweight Rust-only implementation of popular tokenizers (WordPiece, BPE etc.).
The separation of concerns is currently a little muddled. Since most projects and examples instantiate tokenizers from Hugging Face tokenizer.json files, it would make sense to align the crate with the tokenization pipeline that these files capture.
The sub-tasks are not well-defined yet, but the outcome should be that rten-text's tokenizers are a fairly straightforward implementation of this pipeline.
The text was updated successfully, but these errors were encountered:
Add a `Normalizer` trait which provides the common interface for normalizers and
rename the previous `Normalizer` struct to `BertNormalizer`, to align with the
name in tokenizer.json files. Change other parts of the tokenization process
to use the normalizer via a trait object.
Part of #427
The main function of the rten-text crate is to provide a relatively lightweight Rust-only implementation of popular tokenizers (WordPiece, BPE etc.).
The separation of concerns is currently a little muddled. Since most projects and examples instantiate tokenizers from Hugging Face
tokenizer.json
files, it would make sense to align the crate with the tokenization pipeline that these files capture.The sub-tasks are not well-defined yet, but the outcome should be that rten-text's tokenizers are a fairly straightforward implementation of this pipeline.
The text was updated successfully, but these errors were encountered: