fixed ems bug when no interpolated LMs are used

This commit is contained in:
phikoehn 2012-01-12 03:34:51 +00:00
parent 69dc1e1c6a
commit ba469d27a5
2 changed files with 2 additions and 1 deletions

View File

@ -271,6 +271,7 @@ binarize
in: qlm
out: binlm
pass-unless: lm-binarizer
ignore-unless: script
rerun-on-change: lm
default-name: lm/interpolated-binlm
error: set kMaxOrder to at least this value

View File

@ -1819,8 +1819,8 @@ sub define_training_create_config {
}
}
}
shift @LM;
}
shift @LM; # remove interpolated lm
die("ERROR: number of defined LM sets (".(scalar @LM_SETS).":".join(",",@LM_SETS).") and LM files (".(scalar @LM).":".join(",",@LM).") does not match")
unless scalar @LM == scalar @LM_SETS;