Fast tokenizer
Project description
Tokenizer
Tokenizer different language fast.
Build a package
python setup.py bdist_wheel
twine upload dist/*
Use Locally
x1 = '<a>刘强东是一个著名企业家。</a> 他创建了京东。'
t = EncoderLoader.load_tokenizer('bert-base-chinese-zh_v4-10K')
print(t.tokenize(x1, mode='char'))
print(t.tokenize(x1, mode='word'))
print(t.tokenize(x1, mode='all'))
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file soco_tokenizer-1.2-py3-none-any.whl
.
File metadata
- Download URL: soco_tokenizer-1.2-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.6.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0b85446a1cdba2585902ec6b99bbfdc3cecb2e0eaf7f064e9515950e277d7e7 |
|
MD5 | a456d842f625a0b5050673ddaf86a1f4 |
|
BLAKE2b-256 | 0835f78adc48dc485338a8bee7d0d2a2110dc1e0cffa7fdcb0524b63bdbcb9f2 |