From c9f1b4e8a2e903f74de20d019e70307c26e93c3e Mon Sep 17 00:00:00 2001
From: shixian.shi <shixian.shi@alibaba-inc.com>
Date: 星期四, 23 十一月 2023 20:39:52 +0800
Subject: [PATCH] update
---
funasr/text/cleaner.py | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/funasr/text/cleaner.py b/funasr/text/cleaner.py
index be26940..1044f50 100644
--- a/funasr/text/cleaner.py
+++ b/funasr/text/cleaner.py
@@ -1,8 +1,7 @@
from typing import Collection
from jaconv import jaconv
-import tacotron_cleaner.cleaners
-from typeguard import check_argument_types
+# import tacotron_cleaner.cleaners
try:
from vietnamese_cleaner import vietnamese_cleaners
@@ -21,7 +20,6 @@
"""
def __init__(self, cleaner_types: Collection[str] = None):
- assert check_argument_types()
if cleaner_types is None:
self.cleaner_types = []
@@ -33,7 +31,8 @@
def __call__(self, text: str) -> str:
for t in self.cleaner_types:
if t == "tacotron":
- text = tacotron_cleaner.cleaners.custom_english_cleaners(text)
+ # text = tacotron_cleaner.cleaners.custom_english_cleaners(text)
+ pass
elif t == "jaconv":
text = jaconv.normalize(text)
elif t == "vietnamese":
--
Gitblit v1.9.1