diff options
-rw-r--r-- | htk_io/init.lua | 4 | ||||
-rw-r--r-- | speech_utils/init.lua | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/htk_io/init.lua b/htk_io/init.lua index af1f740..da91980 100644 --- a/htk_io/init.lua +++ b/htk_io/init.lua @@ -29,13 +29,11 @@ function TNetReader:get_data() return nil end local res = {} - local frm_ext = self.frm_ext - local step = frm_ext * 2 + 1 -- read HTK feature local feat_utter = self.feat_repo:cur_utter(self.debug) -- global transf local transformed = nerv.speech_utils.global_transf(feat_utter, - self.global_transf, frm_ext, self.gconf) + self.global_transf, self.frm_ext, self.gconf) res[self.feat_id] = transformed -- add corresponding labels diff --git a/speech_utils/init.lua b/speech_utils/init.lua index 5148664..87129af 100644 --- a/speech_utils/init.lua +++ b/speech_utils/init.lua @@ -1,7 +1,6 @@ nerv.speech_utils = {} function nerv.speech_utils.global_transf(feat_utter, global_transf, frm_ext, gconf) - local res = {} local step = frm_ext * 2 + 1 -- expand the feature local expanded = gconf.cumat_type(feat_utter:nrow(), feat_utter:ncol() * step) |