From 8e2160daf51bdd39293b63e04ba9cdee88272b3b Mon Sep 17 00:00:00 2001 From: Timothy Carambat Date: Thu, 30 Oct 2025 23:46:56 -0700 Subject: [PATCH] Update g2p.py to remove 3.12 linter error --- g2p_en/g2p.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g2p_en/g2p.py b/g2p_en/g2p.py index 8b37659..86d1926 100644 --- a/g2p_en/g2p.py +++ b/g2p_en/g2p.py @@ -152,7 +152,7 @@ class G2p(object): text = ''.join(char for char in unicodedata.normalize('NFD', text) if unicodedata.category(char) != 'Mn') # Strip accents text = text.lower() - text = re.sub("[^ a-z'.,?!\-]", "", text) + text = re.sub(r"[^ a-z'.,?!\-]", "", text) text = text.replace("i.e.", "that is") text = text.replace("e.g.", "for example")