diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-05-05 11:15:08 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-05-05 11:15:08 +0300 |
commit | d006c6ef8c63fc6530c75d7e28519a9ab26464f1 (patch) | |
tree | 4887cb82c0bba5807b547625991a452e70622529 | |
parent | 5fefb0da4717ad224c0ce711809e662623fafc92 (diff) |
don't output remaining args twice
-rwxr-xr-x | scripts/ems/support/lmplz-wrapper.perl | 2 |
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`; |