diff options
author | Barry Haddow <barry.haddow@gmail.com> | 2013-05-16 22:34:56 +0400 |
---|---|---|
committer | Barry Haddow <barry.haddow@gmail.com> | 2013-05-16 22:34:56 +0400 |
commit | 585786d26bf26afb15adc7c7e02729860684b0b3 (patch) | |
tree | 1c7efdf391ec9f084cdb9bc3fe4d60ec5b2ed8f4 /scripts/ems | |
parent | ab51ccff6d2b7a8d44a9c5ca552fdaea369238c0 (diff) |
can specify location of create-ini
Diffstat (limited to 'scripts/ems')
-rw-r--r-- | scripts/ems/experiment.meta | 2 | ||||
-rwxr-xr-x | scripts/ems/experiment.perl | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/scripts/ems/experiment.meta b/scripts/ems/experiment.meta index b5803b8cd..c82195b1a 100644 --- a/scripts/ems/experiment.meta +++ b/scripts/ems/experiment.meta @@ -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 diff --git a/scripts/ems/experiment.perl b/scripts/ems/experiment.perl index 855d6b96c..b4ebe161a 100755 --- a/scripts/ems/experiment.perl +++ b/scripts/ems/experiment.perl @@ -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)." " |