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 <hieuhoang@gmail.com>2015-05-05 11:15:08 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-05-05 11:15:08 +0300
commitd006c6ef8c63fc6530c75d7e28519a9ab26464f1 (patch)
tree4887cb82c0bba5807b547625991a452e70622529 /scripts
parent5fefb0da4717ad224c0ce711809e662623fafc92 (diff)
don't output remaining args twice
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ems/support/lmplz-wrapper.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ems/support/lmplz-wrapper.perl b/scripts/ems/support/lmplz-wrapper.perl
index e0ac9bd1a..f36d2d9e0 100755
--- a/scripts/ems/support/lmplz-wrapper.perl
+++ b/scripts/ems/support/lmplz-wrapper.perl
@@ -20,9 +20,9 @@ die("ERROR: specify at least --bin BIN --text CORPUS --lm LM and --order N!")
unless defined($BIN) && defined($TEXT) && defined($LM) && defined($ORDER);
my $settings = join(' ', @ARGV);
+
my $cmd = "$BIN --text $TEXT --order $ORDER --arpa $LM $settings";
$cmd .= " -T $TMPDIR" if defined($TMPDIR);
$cmd .= " -S $MEMORY" if defined($MEMORY);
-$cmd .= " " . join(' ', @ARGV) if scalar(@ARGV); # Pass remaining args through.
print STDERR "Executing: $cmd\n";
`$cmd`;