summaryrefslogtreecommitdiff
path: root/kaldi_io
diff options
context:
space:
mode:
Diffstat (limited to 'kaldi_io')
-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