mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 01:52:41 +00:00
remove duplicated lines (#988)
This commit is contained in:
parent
c90f57afdb
commit
136aa94d57
@ -403,9 +403,8 @@ def main():
|
|||||||
text += symbol_table[i]
|
text += symbol_table[i]
|
||||||
return text.replace("▁", " ").strip()
|
return text.replace("▁", " ").strip()
|
||||||
|
|
||||||
context_size = model.context_size
|
|
||||||
for filename, hyp in zip(args.sound_files, hyps):
|
for filename, hyp in zip(args.sound_files, hyps):
|
||||||
words = token_ids_to_words(hyp[context_size:])
|
words = token_ids_to_words(hyp)
|
||||||
s += f"{filename}:\n{words}\n"
|
s += f"{filename}:\n{words}\n"
|
||||||
logging.info(s)
|
logging.info(s)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user