Fix for black

This commit is contained in:
Yifan Yang 2023-07-24 15:27:16 +08:00
parent 585925d81b
commit 96e2ea5659

View File

@ -38,7 +38,7 @@ def get_args():
def normalize_text(utt: str) -> str: def normalize_text(utt: str) -> str:
punc = '~`!#$%^&*()_+-=|\';":/.,?><~·!@#¥%……&*()——+-=“:’;、。,?》《{}' punc = "~`!#$%^&*()_+-=|';\":/.,?><~·!@#¥%……&*()——+-=“:’;、。,?》《{}"
return re.sub(r"[{0}]+".format(punc), "", utt).upper() return re.sub(r"[{0}]+".format(punc), "", utt).upper()