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 | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/funasr/bin/tokenize_text.py b/funasr/bin/tokenize_text.py
index dc565d0..0ecf2f6 100755
--- a/funasr/bin/tokenize_text.py
+++ b/funasr/bin/tokenize_text.py
@@ -7,12 +7,11 @@
from typing import List
from typing import Optional
-from typeguard import check_argument_types
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
@@ -81,7 +80,6 @@
cleaner: Optional[str],
g2p: Optional[str],
):
- assert check_argument_types()
logging.basicConfig(
level=log_level,
@@ -241,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