Skip to main content

Python package for text normalization, use for frontend of Text-to-speech Reseach

Project description

Install the International Components for Unicode

brew instalal icu4c

Install ViNorm package

pip install vinorm_mac

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 -> unknown -> 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 unknown 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/*

Project details


Release history Release notifications | RSS feed

This version

3.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vinorm_mac-3.0.tar.gz (40.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vinorm_mac-3.0-py3-none-any.whl (80.7 MB view details)

Uploaded Python 3

File details

Details for the file vinorm_mac-3.0.tar.gz.

File metadata

  • Download URL: vinorm_mac-3.0.tar.gz
  • Upload date:
  • Size: 40.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.0

File hashes

Hashes for vinorm_mac-3.0.tar.gz
Algorithm Hash digest
SHA256 499e7df097ca539b47e0b86ba3f845f9dbf9eba54f274ceba8576938100847de
MD5 983326358821622ceb2b45d525c94d0b
BLAKE2b-256 8be8a5b7a67db667dc10a572e8c6a597b43c1799db815743b9c30ac0ed3d2877

See more details on using hashes here.

File details

Details for the file vinorm_mac-3.0-py3-none-any.whl.

File metadata

  • Download URL: vinorm_mac-3.0-py3-none-any.whl
  • Upload date:
  • Size: 80.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.0

File hashes

Hashes for vinorm_mac-3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e0646d1632c39d0fce1df83e67cc8cc5ce1a167f829eb19c72e205dfd7a44be
MD5 e1d3abbbec67aa5a6b67879ce6458880
BLAKE2b-256 8f2913b6d1fb1e63fb4d823d6eb6fcde9628b77a11a950568a05054d65bdea59

See more details on using hashes here.

Supported by

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