From 354e40925b511356c9db542a992a246d73bf47a4 Mon Sep 17 00:00:00 2001 From: jinzr <60612200+JinZr@users.noreply.github.com> Date: Mon, 26 Jun 2023 21:12:56 +0800 Subject: [PATCH] Update decode.py fixed a KeyError occurred during the computation of WER for nbest-oracle --- egs/swbd/ASR/conformer_ctc/decode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egs/swbd/ASR/conformer_ctc/decode.py b/egs/swbd/ASR/conformer_ctc/decode.py index f805becd0..f89ad17e0 100755 --- a/egs/swbd/ASR/conformer_ctc/decode.py +++ b/egs/swbd/ASR/conformer_ctc/decode.py @@ -366,7 +366,7 @@ def decode_one_batch( ref_texts=supervisions["text"], word_table=word_table, nbest_scale=params.nbest_scale, - oov="", + oov="", ) hyps = get_texts(best_path) hyps = [[word_table[i] for i in ids] for ids in hyps]