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

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

use warnings;
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);

}