summaryrefslogtreecommitdiff
path: root/kaldi_io/init.lua
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2016-04-18 12:40:18 +0800
committerDeterminant <[email protected]>2016-04-18 12:40:18 +0800
commit2da71705cab5a583c642441f8321ddbaf0c7cb42 (patch)
tree44a0355d00f6be28284b9b99622f93ae06155541 /kaldi_io/init.lua
parente6d9e562fa42ddafac601be12da4c4faee85dd4d (diff)
support SeqBuffer decodingbeta-1alpha-4
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 751247a..bec2589 100644
--- a/kaldi_io/init.lua
+++ b/kaldi_io/init.lua
@@ -80,8 +80,9 @@ function KaldiReader:get_data()
end
end
res[self.feat_id] = feat_utter
+ self.key = self.feat_repo:key()
if self.need_key then
- res["key"] = self.feat_repo:key()
+ res["key"] = self.key
end
-- add corresponding labels
for id, repo in pairs(self.lab_repo) do