summaryrefslogtreecommitdiff
path: root/kaldi_io/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'kaldi_io/init.lua')
-rw-r--r--kaldi_io/init.lua3
1 files changed, 2 insertions, 1 deletions
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