Remove deprecated lazyken=0 settings. Should be load instead, but don't specify if it's the default.

This commit is contained in:
Kenneth Heafield 2016-03-24 12:57:39 +00:00
parent ab9e408f11
commit 31698d5eca
3 changed files with 4 additions and 6 deletions

View File

@ -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)

View File

@ -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);

View File

@ -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";
}