From cb6fbdad7410d2e38dbbeaf077d8355f1fafc403 Mon Sep 17 00:00:00 2001 From: Ziyao Wang Date: Thu, 1 Aug 2024 19:35:30 +0800 Subject: [PATCH] Fix RegEX --- GPT_SoVITS/text/english.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPT_SoVITS/text/english.py b/GPT_SoVITS/text/english.py index 6c80aea1..4006c81c 100644 --- a/GPT_SoVITS/text/english.py +++ b/GPT_SoVITS/text/english.py @@ -237,7 +237,7 @@ def text_normalize(text): text = normalize_numbers(text) text = ''.join(char for char in unicodedata.normalize('NFD', text) if unicodedata.category(char) != 'Mn') # Strip accents - text = re.sub("[^ A-Za-z'.,?!\-]", "", text) + text = re.sub(r"[^ A-Za-z'.,?!\-]", "", text) text = re.sub(r"(?i)i\.e\.", "that is", text) text = re.sub(r"(?i)e\.g\.", "for example", text)