diff options
author | Eva Hasler <ehasler@saxnot.inf.ed.ac.uk> | 2012-04-27 08:24:21 +0400 |
---|---|---|
committer | Eva Hasler <ehasler@saxnot.inf.ed.ac.uk> | 2012-04-27 08:24:21 +0400 |
commit | f09c962f76d874216c2829546134a7fdbdae59f5 (patch) | |
tree | d605d91e921cf855d0060fa5c04737a5d242543d /mira | |
parent | 3bfb46d416ecdb54639807d8a747426149a114a2 (diff) |
separate decoder settings, or general
Diffstat (limited to 'mira')
-rwxr-xr-x | mira/training-expt.perl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mira/training-expt.perl b/mira/training-expt.perl index ac75f1cb9..aa843ae2d 100755 --- a/mira/training-expt.perl +++ b/mira/training-expt.perl @@ -59,6 +59,7 @@ my $wait_for_bleu = ¶m("general.wait-for-bleu", 0); #job control my $jackknife = ¶m("general.jackknife", 0); my $working_dir = ¶m("general.working-dir"); +my $general_decoder_settings = ¶m("general.decoder-settings", ""); system("mkdir -p $working_dir") == 0 or die "Error: unable to create directory \"$working_dir\""; my $train_script = "$name-train"; my $job_name = "$name-t"; @@ -123,6 +124,9 @@ my $burn_in_input_file = ¶m("train.burn-in-input-file"); my $burn_in_reference_files = ¶m("train.burn-in-reference-files"); my $skipTrain = ¶m("train.skip", 0); my $train_decoder_settings = ¶m("train.decoder-settings", ""); +if (!$train_decoder_settings) { + $train_decoder_settings = $general_decoder_settings; +} #devtest configuration my ($devtest_input_file, $devtest_reference_files,$devtest_ini_file,$bleu_script,$use_moses); @@ -148,6 +152,10 @@ my $skip_devtest = ¶m("devtest.skip-devtest",0); my $skip_dev = ¶m("devtest.skip-dev",0); my $skip_submit_test = ¶m("devtest.skip-submit",0); my $devtest_decoder_settings = ¶m("devtest.decoder-settings", ""); +if (!$devtest_decoder_settings) { + $devtest_decoder_settings = $general_decoder_settings; +} + # check that number of jobs, dump frequency and number of input sentences are compatible # shard size = number of input sentences / number of jobs, ensure shard size >= dump frequency |