From 136aa94d5757ef02654612f0b19fb5d25d5eda39 Mon Sep 17 00:00:00 2001 From: Zengwei Yao Date: Thu, 6 Apr 2023 17:47:33 +0800 Subject: [PATCH] remove duplicated lines (#988) --- .../ASR/pruned_transducer_stateless3/onnx_pretrained.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/egs/librispeech/ASR/pruned_transducer_stateless3/onnx_pretrained.py b/egs/librispeech/ASR/pruned_transducer_stateless3/onnx_pretrained.py index 5adb6c16a..3947aa102 100755 --- a/egs/librispeech/ASR/pruned_transducer_stateless3/onnx_pretrained.py +++ b/egs/librispeech/ASR/pruned_transducer_stateless3/onnx_pretrained.py @@ -403,9 +403,8 @@ def main(): text += symbol_table[i] return text.replace("▁", " ").strip() - context_size = model.context_size 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" logging.info(s)