WeTextProcessing, including TN & ITN
Project description
Text Normalization & Inverse Text Normalization
1. How To Use
$ git clone https://github.com/wenet-e2e/WeTextProcessing.git
$ cd WeTextProcessing
$ python normalize.py --text "text to be normalized"
$ python inverse_normalize.py --text "text to be denormalized"
2. TN Pipeline
Please refer to TN.README
3. ITN Pipeline (Coming soon...)
Please refer to ITN.README
Acknowledge
- Thank the authors of foundational libraries like OpenFst & Pynini.
- Thank NeMo team & NeMo open-source community.
- Thank Zhenxiang Ma, Jiayu Du, and SpeechColab organization.
- Referred Pynini for reading the FAR, and printing the shortest path of a lattice in the C++ runtime.
- Referred TN of NeMo for the data to build the tagger graph.
- Referred ITN of chinese_text_normalization for the data to build the tagger graph.
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
Close
Hashes for WeTextProcessing-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5fe11df61e320eb562c3ab70779a46e28d4f89edccfa9aacff8668fcc040a2b |
|
MD5 | 1eae2ea9827f1b874747f3ea4bb0916d |
|
BLAKE2b-256 | ea0ba3cc7cee31004c14cada912bdcf2635b3910dc27b014dd88f7b602e563eb |