From 2e36e738ca39afc8d02f3d11013bd12f937cc874 Mon Sep 17 00:00:00 2001
From: zhaomingwork <61895407+zhaomingwork@users.noreply.github.com>
Date: 星期三, 08 十一月 2023 09:22:06 +0800
Subject: [PATCH] fix bug for h5 hotwords (#1067)
---
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