SPRAAK
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
spr_knn_dtw.c File Reference

find the k nearest neighbour templates using DTW for a given context dependent phone graph More...

Detailed Description

find the k nearest neighbour templates using DTW for a given context dependent phone graph

spr_knn_dtw [-LOO](flag: leaving-one-out) <-ref reference data> <-seg label file>
    [-wrd word prefix] <-tst test data> [-mvg gaussian set] [-mvgf factor](-0.5)
    [-ndc cost](10.0) <-lat the lattice file> <-o knn file> [-k k](15) [-k1 k1](1)
    [-threads #threads](0) [-ctx #frames](0)
Parameters
-LOOflagleaving-one-out
Do not compare with templates originating from the same speaker as the current test speaker (leaving-one-out); assumes that, except for data sharpening, the test equals the reference data.
-ref<em>referencedata
The reference data.
-seg<em>labelfile
The segmentation file, list the templates and assigns labels to them.
-wrd<em>wordprefix
Convert the words to templates as well, prefix with the given string. The word template numbering (template index) starts with (#phone_templates) and counts up from there.
-tst<em>testdata
The test data.
-mvg<em>gaussianset
The gaussian set use to calculate the sensitivity (variance) on the test data.
-mvgf<em>factor</em><aname="spr_knn_dtw.mvgf" class="el">
Factor used to convert the distance to a probability for the sensitivity data. Use -0.5/F for correlated data where F>=1.0 indicates the degree of correlation.
-ndc<em>cost</em><aname="spr_knn_dtw.ndc" class="el">
Cost for non-diagonal transitions.
-lat<em>thelattice file
The (pseudo) lattice file listing all segments in the test data which must be handled.
-o<em>knnfile
The output file containing the knn nearest neighbours.
-k<em>k</em><aname="spr_knn_dtw.k" class="el">
Number of neighbours to calculate.
-k1<em>k1</em><aname="spr_knn_dtw.k1" class="el">
Number of neighbours to calculate when DTW fails (extreme warping).
-threads<em>\threads</em><aname="spr_knn_dtw.threads" class="el">
Number of threads used to compute the knn's.
-ctx<em>\frames</em><aname="spr_knn_dtw.ctx" class="el">
Context extension (symmetric).

Find the k nearest neighbour templates using DTW for a given context dependent phone graph.

Author
Kris Demuynck
Date
23/07/2010
Revision History:
23/07/2010 - K.D.
creation
20/08/2010 - K.D.
add mahanalobis distance