mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 05:14:36 +03:00
4e2fc82854
(creates additional files lex.counts.e2f and lex.counts.f2e)
20 lines
365 B
Perl
Executable File
20 lines
365 B
Perl
Executable File
#!/usr/bin/perl
|
|
|
|
use strict;
|
|
use FindBin qw($RealBin);
|
|
BEGIN { require "$RealBin/LexicalTranslationModel.pm"; "LexicalTranslationModel"->import; }
|
|
|
|
if (scalar(@ARGV) < 4) {
|
|
|
|
print STDERR $0." source target alignments output_prefix"."\n"
|
|
|
|
} else {
|
|
|
|
my ($SOURCE,$TARGET,$ALIGNMENT,$OUT) = @ARGV;
|
|
|
|
&get_lexical($SOURCE,$TARGET,$ALIGNMENT,$OUT,0);
|
|
|
|
}
|
|
|
|
|