Make sure tuning uses filtered config when available.

This commit is contained in:
Barry Haddow 2013-05-02 18:50:21 +01:00
parent cf47ad132c
commit 8993339df4
2 changed files with 3 additions and 2 deletions

View File

@ -832,7 +832,7 @@ apply-filter-devtest
ignore-unless: use-mira
template: $moses-script-dir/ems/support/substitute-filtered-tables.perl IN1/moses.ini < IN > OUT
tune
in: TRAINING:bin-config=OR=filtered-config input reference filtered-config-devtest input-devtest reference-devtest
in: bin-config input reference filtered-config-devtest input-devtest reference-devtest filtered-config
out: weight-config
ignore-if: use-hiero
qsub-script: yes

View File

@ -1611,7 +1611,8 @@ sub define_tuning_tune {
my $word_alignment = &backoff_and_get("TRAINING:include-word-alignment-in-rules");
# the last 3 variables are only used for mira tuning
my ($tuned_config,$config,$input,$reference,$config_devtest,$input_devtest,$reference_devtest) = &get_output_and_input($step_id);
my ($tuned_config,$config,$input,$reference,$config_devtest,$input_devtest,$reference_devtest, $filtered_config) = &get_output_and_input($step_id);
$config = $filtered_config if $filtered_config;
my $cmd = "";
if ($use_mira) {