From 38962683e518dcbebc0cfa6c0c9c9616b25d5bd1 Mon Sep 17 00:00:00 2001 From: Determinant Date: Wed, 3 Jun 2015 09:42:05 +0800 Subject: add TNetReader --- tnet_io/cwrapper.h | 1 + tnet_io/test.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'tnet_io') diff --git a/tnet_io/cwrapper.h b/tnet_io/cwrapper.h index 810901b..a34f090 100644 --- a/tnet_io/cwrapper.h +++ b/tnet_io/cwrapper.h @@ -1,6 +1,7 @@ #ifndef NERV_TNET_IO_CWRAPPER #define NERV_TNET_IO_CWRAPPER #include "../../matrix/generic/matrix.h" +#include "../../common.h" #ifdef __cplusplus extern "C" { #endif diff --git a/tnet_io/test.c b/tnet_io/test.c index a5b8f55..8c06805 100644 --- a/tnet_io/test.c +++ b/tnet_io/test.c @@ -22,7 +22,7 @@ int main() { "/slfs1/users/mfy43/swb_ivec/train_bp.scp", "/slfs1/users/mfy43/swb_ivec/plp_0_d_a.conf", 5); Matrix *feat_utter; - feat_utter = tnet_feature_repo_read_utterance(feat_repo); + feat_utter = tnet_feature_repo_read_utterance(feat_repo, NULL); TNetLabelRepo *lab_repo = tnet_label_repo_new( "/slfs1/users/mfy43/swb_ivec/ref.mlf", @@ -33,7 +33,7 @@ int main() { Matrix *lab_utter = tnet_label_repo_read_utterance(lab_repo, feat_utter->nrow - 5 * 2, tnet_feature_repo_current_samplerate(feat_repo), - tnet_feature_repo_current_tag(feat_repo)); + tnet_feature_repo_current_tag(feat_repo), NULL); print_nerv_matrix(lab_utter); return 0; } -- cgit v1.2.3