summaryrefslogblamecommitdiff
path: root/examples/tnet_io_example.lua
blob: eea73a586450a7518f3879e4297e5bd8a391a12d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                             
require 'libspeech'
frm_ext = 5
feat_repo = nerv.TNetFeatureRepo(
                                "/slfs1/users/mfy43/swb_ivec/train_bp.scp",
                                "/slfs1/users/mfy43/swb_ivec/plp_0_d_a.conf",
                                frm_ext)
lab_repo = nerv.TNetLabelRepo(
                                "/slfs1/users/mfy43/swb_ivec/ref.mlf",
                                "map",
                                "/slfs1/users/mfy43/swb_ivec/dict",
                                "*/",
                                "lab")
feat_utter = feat_repo:cur_utter()
print(feat_utter)
lab_utter = lab_repo:get_utter(feat_repo, feat_utter:nrow() - frm_ext * 2)
print(lab_utter)