mirror of
https://github.com/Mintplex-Labs/g2p-en.git
synced 2026-07-01 18:25:51 -04:00
Update g2p.py to remove 3.12 linter error
This commit is contained in:
+1
-1
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user