Generate correct ini file for lattices

This commit is contained in:
Barry Haddow 2013-07-23 11:46:37 +01:00
parent 8ed8bcafc2
commit 50de0e06d1

View File

@ -2055,11 +2055,12 @@ sub create_ini {
# lattice feature # lattice feature
if ($_NUM_LATTICE_FEATURES) { if ($_NUM_LATTICE_FEATURES) {
print INI "\n\n#lattice or confusion net weights\n[weight-i]\n"; $feature_spec .= "InputFeature num-input-features=$_NUM_LATTICE_FEATURES\n";
$weight_spec .= "InputFeature0=";
for (1..$_NUM_LATTICE_FEATURES) { for (1..$_NUM_LATTICE_FEATURES) {
print INI "0.1\n"; $weight_spec .= " 0.1";
} }
print "\n"; $weight_spec .= "\n";
} }
# get addititional content for config file from switch or file # get addititional content for config file from switch or file