bytepiece-rs Python binding
Project description
bytepiece-rs
Install
pip install rs_bytepiece
Usage
from rs_bytepiece import Tokenizer
tokenizer = Tokenizer()
ids = tokenizer.encode("今天天气不错")
text = tokenizer.decode(ids)
Performance
The performance is a bit faster than the original implementation. I've tested the《鲁迅全集》which has 625890 chars.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for rs_bytepiece-0.0.3-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42937ef7205a3f67e2877abcd14ef81135eece08e180c4dfa47b55a4ea820cc9 |
|
MD5 | f4b0146223c0e60d731ddeae9705f36a |
|
BLAKE2b-256 | f5f879a015fdea10f30217dd85ec7a610b5200174c4be9481eb0c5b512695afc |
Close
Hashes for rs_bytepiece-0.0.3-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0124565266625753a3406bc0ffd99ce562eae96ebf16e426e3f447822925d620 |
|
MD5 | a4de1a2821aaf66046c8accaf2b1474c |
|
BLAKE2b-256 | f675dad8b307e9e88b1df6841d40a1227386ed5d355ee030f8c93bf4e3887746 |