mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
fixed an issue related to certain decoding patterns
This commit is contained in:
parent
40737f760b
commit
d0d71ca515
@ -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"
|
||||||
|
|||||||
@ -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"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user