mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-19 23:27:46 +03:00
fixed ems bug when no interpolated LMs are used
This commit is contained in:
parent
69dc1e1c6a
commit
ba469d27a5
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user