summaryrefslogtreecommitdiff
path: root/htk_io
diff options
context:
space:
mode:
authorYimmon Zhuang <[email protected]>2015-08-27 19:46:01 +0800
committerYimmon Zhuang <[email protected]>2015-08-27 19:46:01 +0800
commitd7ff508792874628bf65f3f2607824b73db5ddbb (patch)
tree530f345a34fda5d87303f3c2e64a8aa99d0d0894 /htk_io
parent77084d50207b6078460e83fe6f069967a6e11ccc (diff)
parent9e1a0931be43ea80fe7d41154007839b637d4e08 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'htk_io')
-rw-r--r--htk_io/init.lua14
1 files changed, 8 insertions, 6 deletions
diff --git a/htk_io/init.lua b/htk_io/init.lua
index abaa794..b360b67 100644
--- a/htk_io/init.lua
+++ b/htk_io/init.lua
@@ -14,12 +14,14 @@ function TNetReader:__init(global_conf, reader_conf)
reader_conf.conf_file,
reader_conf.frm_ext)
self.lab_repo = {}
- for id, mlf_spec in pairs(reader_conf.mlfs) do
- self.lab_repo[id] = nerv.TNetLabelRepo(mlf_spec.file,
- mlf_spec.format,
- mlf_spec.format_arg,
- mlf_spec.dir,
- mlf_spec.ext)
+ if reader_conf.mlfs then
+ for id, mlf_spec in pairs(reader_conf.mlfs) do
+ self.lab_repo[id] = nerv.TNetLabelRepo(mlf_spec.file,
+ mlf_spec.format,
+ mlf_spec.format_arg,
+ mlf_spec.dir,
+ mlf_spec.ext)
+ end
end
end