summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2015-08-05 08:10:14 +0800
committerDeterminant <[email protected]>2015-08-05 08:10:14 +0800
commit261aed43b863c85ecf709dcac2739c388ec491d2 (patch)
tree6af7690705150aad50ad98ba82a19e12c91b95cb
parentacd1bc3cf812f69a6260179b584f2a3f0e6d6b80 (diff)
...
-rw-r--r--htk_io/init.lua4
-rw-r--r--speech_utils/init.lua1
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)