diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-06-06 18:50:13 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-06-06 18:50:13 +0400 |
commit | a866263075eb27e6908f262eafdb4a4a4ad10da9 (patch) | |
tree | 615caa28018a4a6ebbb4cf4716db6ab9012c2eb8 /defer/phrase.word-translation.nbest/filter-nbest.pl | |
parent | 862bdde104d5a6ea44a9296a97b474463be56e70 (diff) |
defer 2 tests with nbest list again. Cruise control fails due to different sort order. Prob due to variation in boost's hash map
Diffstat (limited to 'defer/phrase.word-translation.nbest/filter-nbest.pl')
-rwxr-xr-x | defer/phrase.word-translation.nbest/filter-nbest.pl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/defer/phrase.word-translation.nbest/filter-nbest.pl b/defer/phrase.word-translation.nbest/filter-nbest.pl new file mode 100755 index 0000000..705fcee --- /dev/null +++ b/defer/phrase.word-translation.nbest/filter-nbest.pl @@ -0,0 +1,12 @@ +#!/usr/bin/perl +$x=0; +$oldcode = ""; +while (<>) { + chomp; + ($code,$trans,$featscores,$globscores) = split(/[\s]*\|\|\|[\s]*/,$_); + $x = 0 if $oldcode ne $code; + $x++; + chomp($code); + print "TRANSLATION_${code}_NBEST_${x}=$trans ||| $featscores\n"; + $oldcode = $code; +} |