mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-19 05:54:20 +00:00
fixed few issues related to post processing
This commit is contained in:
parent
58b7dfd6ae
commit
737274c9ed
@ -411,8 +411,8 @@ def main():
|
|||||||
|
|
||||||
s = "\n"
|
s = "\n"
|
||||||
for filename, hyp in zip(params.sound_files, hyps):
|
for filename, hyp in zip(params.sound_files, hyps):
|
||||||
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)
|
||||||
|
|
||||||
|
@ -430,7 +430,7 @@ def main():
|
|||||||
|
|
||||||
s = "\n"
|
s = "\n"
|
||||||
for filename, hyp in zip(params.sound_files, hyps):
|
for filename, hyp in zip(params.sound_files, hyps):
|
||||||
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user