Update g2p.py to remove 3.12 linter error

This commit is contained in:
Timothy Carambat
2025-10-30 23:46:56 -07:00
committed by GitHub
parent c6439c274c
commit 8e2160daf5
+1 -1
View File
@@ -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")