Install ViNorm package
pip install vinorm
Using in python script
from vinorm import TTSnorm
S=TTSnorm("Hàm này được phát triển từ 8/2019. Có phải tháng 12/2020 đã có vaccine phòng ngừa Covid-19 xmz ?")
Some option
TTSnorm(text, punc = False, unknown = True, lower = True, rule = False )
- lower: If true, get normalization with lowercase
- rule: If true, just get normalization wit Regex, not using Dictionary Checking (this flag is not used with another flag)
- punc: If true, do not replace punctuation with dot and coma
- unknown: If true, replace unknown word, discard word undefine and do not contain vowel, do not spell word with vowel
From version 2.0, do not replace unknown words, skip them for espeak handle in phonetization step
- This version does not parse case: "Tổ chức WTO" WTO do not in dictionary -> unknow -> keep origin, do not spell as in version 1.0, this aim to use with espeak, let espeak handle, but the drawback is the output of espeak for this case is "ve1kɛɜpte1ɔ7", it does not split each syllable.
- For new entity, need to update in the dictionary
For update lastest version access: https://github.com/NoahDrisort/vinorm
For version 1.0: spell words that is unknow by each character, check previous commit
For C++ version: https://github.com/NoahDrisort/vinorm_cpp_version
Update pypi
python setup.py sdist bdist_wheel
twine upload dist/*
Metadata
Release files for regnorm 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| regnorm-0.0.4.tar.gz | 40.2 MB | Without provenance | Details for regnorm-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| regnorm-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for regnorm-0.0.4-py3-none-any.whl |
Total release size: 120.9 MB
Release files / regnorm-0.0.4.tar.gz
| Download URL | regnorm-0.0.4.tar.gz |
|---|---|
| Size | 40.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c2c5e1a729351c0920b897702c0cf615b6aedd3e3ee5c5ccd2c7b1cd96b12d5
|
|
BLAKE2b-256 checksum How to use checksums |
a52e8e557927c735643867c235c60069b270d41ccc02c90da20df90b07c79f09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11
|
Release files / regnorm-0.0.4-py3-none-any.whl
| Download URL | regnorm-0.0.4-py3-none-any.whl |
|---|---|
| Size | 80.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a94f1ac51d58f86d0f9198815ee128eac16252713941db53158afaba17441b82
|
|
BLAKE2b-256 checksum How to use checksums |
47b2cba1e94cb96a65896ced735ce9e77efa80b3e5183aa13369a8302f7349f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11
|
Security for regnorm 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.