diff --git a/egs/librispeech/ASR/local/.compile_hlg.py.swp b/egs/librispeech/ASR/local/.compile_hlg.py.swp index 923b78c8c..c567ff5df 100644 Binary files a/egs/librispeech/ASR/local/.compile_hlg.py.swp and b/egs/librispeech/ASR/local/.compile_hlg.py.swp differ diff --git a/egs/librispeech/ASR/local/compile_hlg.py b/egs/librispeech/ASR/local/compile_hlg.py index 5c05d4fe0..df6c609bb 100755 --- a/egs/librispeech/ASR/local/compile_hlg.py +++ b/egs/librispeech/ASR/local/compile_hlg.py @@ -114,7 +114,7 @@ def compile_HLG(lang_dir: str, lm: str = "G_3_gram") -> k2.Fsa: # for why we need to set LG.properties to None LG.__dict__["_properties"] = None - #assert isinstance(LG.aux_labels, k2.RaggedTensor) + assert isinstance(LG.aux_labels, k2.RaggedTensor) LG.aux_labels.values[LG.aux_labels.values >= first_word_disambig_id] = 0 LG = k2.remove_epsilon(LG)