mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-21 08:07:14 +03:00
Merge branch 'master' of github.com:moses-smt/mosesdecoder
This commit is contained in:
commit
7b9141d70d
@ -36,10 +36,12 @@ m_unrestricted(true)
|
||||
}
|
||||
|
||||
// load word list for restricted feature set
|
||||
cerr << "loading source word deletion word list from " << filename << endl;
|
||||
if (!Load(filename)) {
|
||||
UserMessage::Add("Unable to load word list for source word deletion feature from file " + filename);
|
||||
//return false;
|
||||
if (filename != "") {
|
||||
cerr << "loading source word deletion word list from " << filename << endl;
|
||||
if (!Load(filename)) {
|
||||
UserMessage::Add("Unable to load word list for source word deletion feature from file " + filename);
|
||||
//return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -581,7 +581,7 @@ create-config
|
||||
in: sigtest-filter-reordering-table sigtest-filter-phrase-translation-table generation-table sparse-lexical corpus-mml-prefilter=OR=corpus-mml-postfilter=OR=domains INTERPOLATED-LM:binlm LM:binlm
|
||||
out: config
|
||||
ignore-if: use-hiero
|
||||
rerun-on-change: decoding-steps alignment-factors translation-factors reordering-factors generation-factors lexicalized-reordering training-options script decoding-graph-backoff score-settings additional-ini
|
||||
rerun-on-change: decoding-steps alignment-factors translation-factors reordering-factors generation-factors lexicalized-reordering training-options script decoding-graph-backoff score-settings additional-ini create-ini
|
||||
default-name: model/moses.ini
|
||||
error: Unknown option
|
||||
binarize-config
|
||||
|
@ -2107,7 +2107,8 @@ sub define_training_create_config {
|
||||
= &get_output_and_input($step_id);
|
||||
|
||||
my $moses_src_dir = &check_and_get("GENERAL:moses-src-dir");
|
||||
my $cmd = "$moses_src_dir/bin/create-ini ";
|
||||
#my $cmd = "$moses_src_dir/bin/create-ini ";
|
||||
my $cmd = &backoff_and_get("TRAINING:create-ini");
|
||||
|
||||
my %IN;
|
||||
my %OUT;
|
||||
@ -2125,7 +2126,7 @@ sub define_training_create_config {
|
||||
$OUT{"word"} = 0;
|
||||
}
|
||||
|
||||
$cmd .= "-input-factor-max ".((scalar keys %IN)-1)." ";
|
||||
$cmd .= " -input-factor-max ".((scalar keys %IN)-1)." ";
|
||||
|
||||
$cmd .= "-translation-factors ".
|
||||
&encode_factor_definition("translation-factors",\%IN,\%OUT)." "
|
||||
|
Loading…
Reference in New Issue
Block a user