File size: 452 Bytes
158b61b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#!/usr/bin/env perl
#
# This file is part of moses. Its use is licensed under the GNU Lesser General
# Public License version 2.1 or, at your option, any later version.
use strict;
use FindBin qw($RealBin);
my ($jar, $hyp,$ref,$tmp) = @ARGV;
`mkdir -p $tmp`;
`$RealBin/create-xml.perl test < $hyp > $tmp/hyp`;
`$RealBin/create-xml.perl ref < $ref > $tmp/ref`;
`java -jar $jar -h $tmp/hyp -r $tmp/ref -o ter -n $tmp/out`;
print `cat $tmp/out.ter`;
|