diff --git a/egs/librispeech/ASR/conformer_ctc2/.conformer.py.swp b/egs/librispeech/ASR/conformer_ctc2/.conformer.py.swp index b6bfb65dd..e21ab6cd3 100644 Binary files a/egs/librispeech/ASR/conformer_ctc2/.conformer.py.swp and b/egs/librispeech/ASR/conformer_ctc2/.conformer.py.swp differ diff --git a/icefall/.decode.py.swp b/icefall/.decode.py.swp index afb54b719..630f78fc3 100644 Binary files a/icefall/.decode.py.swp and b/icefall/.decode.py.swp differ diff --git a/icefall/decode.py b/icefall/decode.py index 1069d2fb8..159587688 100644 --- a/icefall/decode.py +++ b/icefall/decode.py @@ -956,10 +956,13 @@ def rescore_with_attention_decoder( attention_scores = -nll.sum(dim=1) if ngram_lm_scale is None: + ngram_lm_scale_list = [0.] + ''' ngram_lm_scale_list = [0.01, 0.05, 0.08] ngram_lm_scale_list += [0.1, 0.3, 0.5, 0.6, 0.7, 0.9, 1.0] ngram_lm_scale_list += [1.1, 1.2, 1.3, 1.5, 1.7, 1.9, 2.0] ngram_lm_scale_list += [2.1, 2.2, 2.3, 2.5, 3.0, 4.0, 5.0] + ''' else: ngram_lm_scale_list = [ngram_lm_scale]