5 releases
0.1.4 | May 30, 2022 |
---|---|
0.1.3 | Jul 19, 2021 |
0.1.2 | Sep 17, 2020 |
0.1.1 | Sep 15, 2020 |
0.1.0 | Sep 15, 2020 |
#993 in Development tools
211,430 downloads per month
Used in 103 crates
(2 directly)
2MB
16K
SLoC
spm_precompiled
This crate aims to emulate https://github.com/google/sentencepiece Dart::DoubleArray struct and it's Normalizer. It's main intent is to be used with tokenizers that is a Rust library that aims to provide facilities to tokenize string for use with HuggingFace's transformers library
This crate is highly specialized and not intended for general use.
The core of the algorithm is to read spm's binary precompiled_charsmap
.
lib.rs
:
This crate aims to emulate https://github.com/google/sentencepiece Dart::DoubleArray struct and it's Normalizer. It's main intent is to be used with tokenizers that is a Rust library that aims to provide facilities to tokenize string for use with HuggingFace's transformers library
This crate is highly specialized and not intended for general use.
The core of the algorithm is to read spm's binary precompiled_charsmap
.
Dependencies
~1.7–2.5MB
~49K SLoC