mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 05:55:02 +03:00
Remove deprecated lazyken=0 settings. Should be load instead, but don't specify if it's the default.
This commit is contained in:
parent
ab9e408f11
commit
31698d5eca
@ -1015,9 +1015,7 @@ ConvertWeightArgsLM()
|
||||
+ "order=" + modelToks[2] + " " // order
|
||||
+ "num-features=" + SPrint(numFF) + " ";
|
||||
if (lmType == 9) {
|
||||
featureLine += "lazyken=1 ";
|
||||
} else if (lmType == 8) {
|
||||
featureLine += "lazyken=0 ";
|
||||
featureLine += "load=lazy ";
|
||||
}
|
||||
|
||||
if(oovWeights.size() > lmIndex)
|
||||
|
@ -13,7 +13,7 @@ my %TTABLE_IMPLEMENTATION = ( 0 => "PhraseDictionaryMemory",
|
||||
1 => "PhraseDictionaryBinary" ,
|
||||
6 => "PhraseDictionaryMemory");
|
||||
my %LM_IMPLEMENTATION = ( 0 => "SRILM",
|
||||
8 => "KENLM lazyken=0" );
|
||||
8 => "KENLM" );
|
||||
|
||||
|
||||
my (%FEATURE,%WEIGHT);
|
||||
|
@ -2299,9 +2299,9 @@ sub create_ini {
|
||||
} elsif ($type == 1) {
|
||||
$type = "IRSTLM";
|
||||
} elsif ($type == 8) {
|
||||
$type = "KENLM lazyken=0";
|
||||
$type = "KENLM";
|
||||
} elsif ($type == 9) {
|
||||
$type = "KENLM lazyken=1";
|
||||
$type = "KENLM load=lazy";
|
||||
} else {
|
||||
die "Unknown numeric LM type given: $type";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user