From fef569f8d482073db30eff875c70ee40879936f3 Mon Sep 17 00:00:00 2001 From: dohe0342 Date: Thu, 2 Feb 2023 12:03:07 +0900 Subject: [PATCH] from local --- egs/librispeech/ASR/local/.compile_hlg.py.swp | Bin 16384 -> 16384 bytes egs/librispeech/ASR/local/compile_hlg.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/egs/librispeech/ASR/local/.compile_hlg.py.swp b/egs/librispeech/ASR/local/.compile_hlg.py.swp index 923b78c8c807ab257e397d304980845afb02d501..c567ff5dfb44a9eb6580c2e96d39b00760ed3e03 100644 GIT binary patch delta 74 zcmZo@U~Fh$6izY-^Ym4))H7fJ0s#hw3+lHw3V)Pmbpdi6HghW6XB1k?#K4dM#PLAv X0L1o86F0gtDonOlD%`wL$zK)#hsP02 delta 74 zcmZo@U~Fh$6izY-^Ym4))H7fJ0s#gFqg#_U3V)Pmbp~?nH*+f7XB1k)#J~^_#Bo4u V55^NWx=wabDr8jNyiv(t765+o5f%Ud 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)