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 |
#841 in Development tools
231,492 downloads per month
Used in 78 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
~2–2.9MB
~54K SLoC