From da222df300e4f87ad185a7decbf119ad56aa34e0 Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Fri, 29 Jan 2010 15:56:59 +0000 Subject: word aligner checkin --- word-aligner/invert_grammar.pl | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 word-aligner/invert_grammar.pl (limited to 'word-aligner/invert_grammar.pl') diff --git a/word-aligner/invert_grammar.pl b/word-aligner/invert_grammar.pl new file mode 100755 index 00000000..3988388d --- /dev/null +++ b/word-aligner/invert_grammar.pl @@ -0,0 +1,8 @@ +#!/usr/bin/perl -w +use strict; + +while(<>) { + my ($f, $e, $scores) = split / \|\|\| /; + print "$e ||| $f ||| $scores"; +} + -- cgit v1.2.3