Fix mert-moses multi-moses for IRSTLM

This commit is contained in:
Michael Denkowski 2016-03-23 12:42:20 -04:00
parent 4c07496eb2
commit c30a4a5611

View File

@ -1404,6 +1404,10 @@ sub get_featlist_from_moses {
$cmd .= "$___DECODER $___DECODER_FLAGS -config $configfn";
$cmd .= " -inputtype $___INPUTTYPE" if defined($___INPUTTYPE);
$cmd .= " -show-weights";
if (defined $___USE_MULTI_MOSES) {
# Pass moses command through multi-moses script to handle threads properly
$cmd = "$___MULTI_MOSES $cmd";
}
print STDERR "Executing: $cmd\n";
&submit_or_exec($cmd, $featlistfn, "/dev/null", 1);
}