From 306c9e139808887396a28617ea0463d615c89c42 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Sat, 18 Sep 2021 16:46:29 +0800 Subject: [PATCH] Minor fixes. --- egs/librispeech/ASR/conformer_ctc/decode.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/egs/librispeech/ASR/conformer_ctc/decode.py b/egs/librispeech/ASR/conformer_ctc/decode.py index 80126ae4e..6b9ba3ca7 100755 --- a/egs/librispeech/ASR/conformer_ctc/decode.py +++ b/egs/librispeech/ASR/conformer_ctc/decode.py @@ -255,7 +255,7 @@ def decode_one_batch( ) hyps = get_texts(best_path) hyps = [[word_table[i] for i in ids] for ids in hyps] - key = f"oracle_{num_paths}_lattice_score_scale_{params.lattice_score_scale}" # noqa + key = f"oracle_{params.num_paths}_lattice_score_scale_{params.lattice_score_scale}" # noqa return {key: hyps} if params.method in ["1best", "nbest"]: @@ -386,9 +386,6 @@ def decode_dataset( results = defaultdict(list) for batch_idx, batch in enumerate(dl): texts = batch["supervisions"]["text"] - # TODO: remove it - if batch_idx > 100: - break hyps_dict = decode_one_batch( params=params,