Skip to content

Commit

Permalink
Fix to HTK conversion script to be compatible with current code.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@692 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
  • Loading branch information
danpovey committed Jan 12, 2012
1 parent 3792419 commit d6696b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misc/htk_conversion/convert_states.pl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
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};
Expand All @@ -49,7 +49,7 @@
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};
Expand Down

0 comments on commit d6696b5

Please sign in to comment.