Skip to main content

Tokenize for subword

Project description

Genz Tokenize

Github

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


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)

Uploaded Source

Built Distribution

genz_tokenize-1.0.3-py3-none-any.whl (413.7 kB view details)

Uploaded Python 3

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

Hashes for genz-tokenize-1.0.3.tar.gz
Algorithm Hash digest
SHA256 7e9f2d542b3a3902c7a7b7aac28a48931303091942daf21e74bf4e13f179518a
MD5 370a21cda4ba9ab30c06e4d3dda2b1ad
BLAKE2b-256 93ae9467508c36af261887ccf5ab1dc5eff070702bc60b4e8b2790543a97f3d0

See more details on using hashes here.

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

Hashes for genz_tokenize-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f3c8a8c8898b5ab49b8f6f29f8afb7b6f3405fdcacb94220c8eac640de7a0fb5
MD5 1537661781e98123589c1f2a2ec5bbcc
BLAKE2b-256 fcbe4f1aeff2087b96cca218b3eee33c493802d14ed1d0ed12af129612ab8b57

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page