Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <fishandfrolick@gmail.com>2012-05-31 19:52:37 +0400
committerHieu Hoang <fishandfrolick@gmail.com>2012-05-31 19:52:37 +0400
commit220ee4cd3643e0f111c8f4e15d07c3d391e5340f (patch)
treed273f4eeae4faa6510c3ac3ef6cec4674dbed4ce /scripts/ems
parentc80ac7d7e40d2b9e2e735fda0787785f8bee38a8 (diff)
add -external-bin-dir for giza++/mgiza directory. Ignore -bin-dir and -script-root-dir
Diffstat (limited to 'scripts/ems')
-rwxr-xr-xscripts/ems/experiment.perl3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/ems/experiment.perl b/scripts/ems/experiment.perl
index cb4518dde..b0e71c969 100755
--- a/scripts/ems/experiment.perl
+++ b/scripts/ems/experiment.perl
@@ -1994,6 +1994,7 @@ sub get_training_setting {
my ($step) = @_;
my $dir = &check_and_get("GENERAL:working-dir");
my $training_script = &check_and_get("TRAINING:script");
+ my $external_bin_dir = &check_backoff_and_get("TRAINING:external-bin-dir");
my $scripts = &check_backoff_and_get("TUNING:moses-script-dir");
my $reordering = &get("TRAINING:lexicalized-reordering");
my $input_extension = &check_backoff_and_get("TRAINING:input-extension");
@@ -2016,7 +2017,7 @@ sub get_training_setting {
$cmd .= "-dont-zip ";
$cmd .= "-first-step $step " if $step>1;
$cmd .= "-last-step $step " if $step<9;
- $cmd .= "-scripts-root-dir $scripts ";
+ $cmd .= "-external-bin-dir $external_bin_dir " if defined($external_bin_dir);
$cmd .= "-f $input_extension -e $output_extension ";
$cmd .= "-alignment $alignment ";
$cmd .= "-max-phrase-length $phrase_length " if $phrase_length;