Tokenize for subword
Project description
Genz Tokenize
install via pip (from PyPI):
pip install genz-tokenize
Using
from genz_tokenize import Tokenize
tokenize = Tokenize('vocab.txt', 'bpe.codes')
print(tokenize(['sinh_viên công_nghệ', 'hello'], maxlen = 10))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
genz-tokenize-1.0.3.tar.gz
(411.6 kB
view details)
Built Distribution
genz_tokenize-1.0.3-py3-none-any.whl
(413.7 kB
view details)
File details
Details for the file genz-tokenize-1.0.3.tar.gz
.
File metadata
- Download URL: genz-tokenize-1.0.3.tar.gz
- Upload date:
- Size: 411.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e9f2d542b3a3902c7a7b7aac28a48931303091942daf21e74bf4e13f179518a |
|
MD5 | 370a21cda4ba9ab30c06e4d3dda2b1ad |
|
BLAKE2b-256 | 93ae9467508c36af261887ccf5ab1dc5eff070702bc60b4e8b2790543a97f3d0 |
File details
Details for the file genz_tokenize-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: genz_tokenize-1.0.3-py3-none-any.whl
- Upload date:
- Size: 413.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3c8a8c8898b5ab49b8f6f29f8afb7b6f3405fdcacb94220c8eac640de7a0fb5 |
|
MD5 | 1537661781e98123589c1f2a2ec5bbcc |
|
BLAKE2b-256 | fcbe4f1aeff2087b96cca218b3eee33c493802d14ed1d0ed12af129612ab8b57 |