mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 10:02:22 +00:00
ignore decode errors.
This commit is contained in:
parent
ba5ffc711e
commit
2e1a1af049
@ -335,7 +335,7 @@ def main():
|
||||
byte_list.append(int(token[3:-1], 16))
|
||||
else:
|
||||
byte_list += list(token.encode("utf-8"))
|
||||
text = bytes(byte_list).decode("utf-8")
|
||||
text = bytes(byte_list).decode("utf-8", errors='ignore')
|
||||
return text.replace("▁", " ").strip()
|
||||
|
||||
if params.method == "fast_beam_search":
|
||||
|
Loading…
x
Reference in New Issue
Block a user