From 261aed43b863c85ecf709dcac2739c388ec491d2 Mon Sep 17 00:00:00 2001 From: Determinant Date: Wed, 5 Aug 2015 08:10:14 +0800 Subject: ... --- htk_io/init.lua | 4 +--- speech_utils/init.lua | 1 - 2 files changed, 1 insertion(+), 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) -- cgit v1.2.3-70-g09d2