From fce4e1d1b48f23cd8332e60afce3df8d6209a6a7 Mon Sep 17 00:00:00 2001
From: gaochangfeng <54253717+gaochangfeng@users.noreply.github.com>
Date: 星期四, 11 四月 2024 14:59:22 +0800
Subject: [PATCH] SenseVoice对富文本解码的参数 (#1608)

---
 funasr/bin/tokenize_text.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/funasr/bin/tokenize_text.py b/funasr/bin/tokenize_text.py
index 6ec83a8..0ecf2f6 100755
--- a/funasr/bin/tokenize_text.py
+++ b/funasr/bin/tokenize_text.py
@@ -9,9 +9,9 @@
 
 
 from funasr.utils.cli_utils import get_commandline_args
-from funasr.text.build_tokenizer import build_tokenizer
-from funasr.text.cleaner import TextCleaner
-from funasr.text.phoneme_tokenizer import g2p_choices
+from funasr.tokenizer.build_tokenizer import build_tokenizer
+from funasr.tokenizer.cleaner import TextCleaner
+from funasr.tokenizer.phoneme_tokenizer import g2p_classes
 from funasr.utils.types import str2bool
 from funasr.utils.types import str_or_none
 
@@ -239,7 +239,7 @@
     parser.add_argument(
         "--g2p",
         type=str_or_none,
-        choices=g2p_choices,
+        choices=g2p_classes,
         default=None,
         help="Specify g2p method if --token_type=phn",
     )

--
Gitblit v1.9.1