mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-19 05:54:20 +00:00
fixed an issue related to certain decoding patterns
This commit is contained in:
parent
40737f760b
commit
d0d71ca515
@ -421,10 +421,9 @@ 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"
|
|
||||||
logging.info(s)
|
logging.info(s)
|
||||||
|
|
||||||
logging.info("Decoding Done")
|
logging.info("Decoding Done")
|
||||||
|
@ -440,10 +440,9 @@ 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"
|
|
||||||
logging.info(s)
|
logging.info(s)
|
||||||
|
|
||||||
logging.info("Decoding Done")
|
logging.info("Decoding Done")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user