mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
Fix for black
This commit is contained in:
parent
585925d81b
commit
96e2ea5659
@ -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()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user