NVIDIA / NeMo-text-processing

NeMo text processing for ASR and TTS
https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/stable/nlp/text_normalization/wfst/wfst_text_normalization.html
Apache License 2.0
242 stars 76 forks source link

how to run Zh context-aware TN #139

Closed aixingxy closed 4 months ago

aixingxy commented 4 months ago

I successfully run the EN context-aware TN in the documentation.

wfst_lm_rescoring.py

I create a file "ChineseTN.json"

{"text": "全国有211所211高校。", "gt_normalized": "全国有二百一十一所二幺幺高校。"}

Change the data and lang args in wfst_lm_rescoring.py , I got the following error.

FileNotFoundError: [Errno 2] No such file or directory: '/**/NeMo-text-processing/nemo_text_processing/text_normalization/zh/data/measure/measurements.tsv'

how to solve this problem?

ekmb commented 4 months ago

Context-aware TN supports only English at the moment. https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/main/nlp/text_normalization/wfst/wfst_text_normalization.html#language-support-matrix

aixingxy commented 4 months ago

Context-aware TN supports only English at the moment. https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/main/nlp/text_normalization/wfst/wfst_text_normalization.html#language-support-matrix

got it thank you