summaryrefslogtreecommitdiff
path: root/word-aligner/support/invert_grammar.pl
blob: 3988388d86cbac7ff96a81b8a1ca2fe2f4ac1c48 (plain)
1
2
3
4
5
6
7
8
#!/usr/bin/perl -w
use strict;

while(<>) {
  my ($f, $e, $scores) = split / \|\|\| /;
  print "$e ||| $f ||| $scores";
}