Skip to content

Commit

Permalink
[fix]: fix re substitution
Browse files Browse the repository at this point in the history
  • Loading branch information
jianganbai committed Aug 31, 2023
1 parent 7de8833 commit 09d8d33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wenet/dataset/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def get_upper_txt(txt, special_tokens):
"""
txt = txt.upper()
for token in special_tokens:
txt = re.subn(token.upper(), token, txt)
txt = re.sub(token.upper(), token, txt)
return txt


Expand Down

0 comments on commit 09d8d33

Please sign in to comment.