mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-19 23:27:46 +03:00
a25193cc5d
This is lint reported by the new lint-checking functionality in beautify.py. (We can change to a different lint checker if we have a better one, but it would probably still flag these same problems.) Lint checking can help a lot, but only if we get the lint under control.
22 lines
502 B
Perl
Executable File
22 lines
502 B
Perl
Executable File
#!/usr/bin/env perl
|
|
|
|
use warnings;
|
|
use strict;
|
|
use Getopt::Long "GetOptions";
|
|
|
|
my ($TEXT,$ORDER,$BIN,$LM,$TMP);
|
|
|
|
&GetOptions('text=s' => \$TEXT,
|
|
'lm=s' => \$LM,
|
|
'tmp=s' => \$TMP,
|
|
'bin=s' => \$BIN,
|
|
'order=i' => \$ORDER);
|
|
|
|
die("ERROR: specify --text CORPUS --lm LM --order N --bin THOT_BINARY !")
|
|
unless defined($TEXT) && defined($LM) && defined($ORDER) && defined($BIN);
|
|
|
|
my $cmd = "$BIN -c $TEXT -n $ORDER -o $LM -unk -sdir $TMP -tdir $TMP";
|
|
|
|
print "exec: $cmd\n";
|
|
`$cmd`;
|