From 24d56605428467e604afded423ba2ff49f2644e3 Mon Sep 17 00:00:00 2001 From: Eric Bi Date: Thu, 3 Dec 2015 20:12:59 +0800 Subject: fix last commit that broke decoding --- kaldi_io/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kaldi_io') diff --git a/kaldi_io/init.lua b/kaldi_io/init.lua index 5193504..9f3ad55 100644 --- a/kaldi_io/init.lua +++ b/kaldi_io/init.lua @@ -76,7 +76,8 @@ function KaldiReader:get_data() local lab_utter = repo:get_utter(self.feat_repo, feat_utter:nrow(), self.debug) - if lab_utter == nil then + -- need provide 'gconf.decoding = true' while decoding + if not self.gconf.decoding and lab_utter == nil then fail_to_read_alignment = true end res[id] = lab_utter -- cgit v1.2.3-70-g09d2