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

tree-converter-wrapper.perl « support « ems « scripts - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: aae55991a96342153387fda12fef60e772aee80b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env perl

use warnings;
use strict;
use utf8;
use Getopt::Long "GetOptions";

Getopt::Long::config("pass_through");

my ($BIN,$MODEL);

&GetOptions('bin=s' => \$BIN,
            'model=s' => \$MODEL);  # À la truecase.perl

die("ERROR: specify at least --bin BIN!") unless defined($BIN);

my $cmd = "$BIN";
$cmd .= " -case true:model=$MODEL" if defined($MODEL);
$cmd .= " " . join(' ', @ARGV) if scalar(@ARGV);  # Pass other args to $BIN.

system $cmd;