Commit d6696b5c authored by Dan Povey's avatar Dan Povey
Browse files

Fix to HTK conversion script to be compatible with current code.

git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@692 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
parent 3792419c
......@@ -40,7 +40,7 @@ for($pdf = 0; $pdf < $numpdfs; $pdf++) {
print " <WEIGHTS> FV $nm [ ";
for($n = 0; $n < $nm; $n++) { print "$weight{$pdf,$n} "; }
print "]\n";
print " <MEANS_INVVARS> FM $nm $dim [\n";
print " <MEANS_INVVARS> [\n";
for($n = 0; $n < $nm; $n++) {
for($d = 0; $d < $dim; $d++) {
$val = $mean{$pdf,$n,$d} / $var{$pdf,$n,$d};
......@@ -49,7 +49,7 @@ for($pdf = 0; $pdf < $numpdfs; $pdf++) {
print "\n";
}
print " ]\n";
print " <INV_VARS> FM $nm $dim [\n";
print " <INV_VARS> [\n";
for($n = 0; $n < $nm; $n++) {
for($d = 0; $d < $dim; $d++) {
$val = 1.0 / $var{$pdf,$n,$d};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment