From 55c09aeaa25b4bb88a50e09ba68fa6ff00a6d676 Mon Sep 17 00:00:00 2001
From: shixian.shi <shixian.shi@alibaba-inc.com>
Date: 星期一, 15 一月 2024 20:10:39 +0800
Subject: [PATCH] update readme, fix seaco bug

---
 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