From c7c549ead67f134be97ea48f1503a23bfdcefe7e Mon Sep 17 00:00:00 2001 From: "Buyuan(Alex) Cui" <69030297+BuyuanCui@users.noreply.github.com> Date: Thu, 6 Jul 2023 12:19:35 -0700 Subject: [PATCH] updated pynini_export.py file to create far files (#88) Signed-off-by: BuyuanCui --- tools/text_processing_deployment/pynini_export.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/text_processing_deployment/pynini_export.py b/tools/text_processing_deployment/pynini_export.py index 07902b091..6ff21e348 100644 --- a/tools/text_processing_deployment/pynini_export.py +++ b/tools/text_processing_deployment/pynini_export.py @@ -191,6 +191,12 @@ def parse_args(): VerbalizeFst as ITNVerbalizeFst, ) elif args.language == 'zh': + from nemo_text_processing.inverse_text_normalization.zh.taggers.tokenize_and_classify import ( + ClassifyFst as ITNClassifyFst, + ) + from nemo_text_processing.inverse_text_normalization.zh.verbalizers.verbalize import ( + VerbalizeFst as ITNVerbalizeFst, + ) from nemo_text_processing.text_normalization.zh.taggers.tokenize_and_classify import ( ClassifyFst as TNClassifyFst, )