From bb4d76aa2a1b5e3efb00ccc6ee7fc45e453f2701 Mon Sep 17 00:00:00 2001 From: yrom Date: Fri, 23 May 2025 10:02:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E8=8B=B1=E8=AF=AD?= =?UTF-8?q?=E7=BC=A9=E5=86=99=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 临时解决WeTextProcessing 的部分badcase --- indextts/utils/front.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/indextts/utils/front.py b/indextts/utils/front.py index 2571035..e6c2e44 100644 --- a/indextts/utils/front.py +++ b/indextts/utils/front.py @@ -59,17 +59,21 @@ class TextNormalizer: pattern = r"^[a-zA-Z0-9]+@[a-zA-Z0-9]+\.[a-zA-Z]+$" return re.match(pattern, email) is not None + PINYIN_TONE_PATTERN = r"(?