fixed an issue related to certain decoding patterns

This commit is contained in:
jinzr 2023-08-12 03:21:09 +08:00
parent 40737f760b
commit d0d71ca515
2 changed files with 6 additions and 8 deletions

View File

@ -421,7 +421,6 @@ def main():
"whole-lattice-rescoring", "whole-lattice-rescoring",
]: ]:
for filename, hyp in zip(params.sound_files, hyps): for filename, hyp in zip(params.sound_files, hyps):
for words in hyp:
words = " ".join(hyp) words = " ".join(hyp)
words = words.replace("", " ").strip() words = words.replace("", " ").strip()
s += f"{filename}:\n{words}\n\n" s += f"{filename}:\n{words}\n\n"

View File

@ -440,7 +440,6 @@ def main():
"whole-lattice-rescoring", "whole-lattice-rescoring",
]: ]:
for filename, hyp in zip(params.sound_files, hyps): for filename, hyp in zip(params.sound_files, hyps):
for words in hyp:
words = " ".join(hyp) words = " ".join(hyp)
words = words.replace("", " ").strip() words = words.replace("", " ").strip()
s += f"{filename}:\n{words}\n\n" s += f"{filename}:\n{words}\n\n"