Hi,
is there any debug mode for multi-bleu.perl ? I'm not familiar with
perl.

I have problems evaluating some translations, when comparing different
models translating French to Swedish (fr-sv). Running multi-bleu.perl on
the text translated by the baseline model works OK, but it halts with
the same error message for all my hierarchical models:

Use of uninitialized value in division (/) at multi-bleu.perl line 114,
<STDIN> line 132.
Use of uninitialized value in division (/) at multi-bleu.perl line 114,
<STDIN> line 132.
Use of uninitialized value in division (/) at multi-bleu.perl line 114,
<STDIN> line 132.
Use of uninitialized value in division (/) at multi-bleu.perl line 114,
<STDIN> line 132.

Line 112-114 in the perl-script:

for(my $n=1;$n<=4;$n++) {
  if (defined ($TOTAL[$n])){
    $bleu[$n]=($TOTAL[$n])?$CORRECT[$n]/$TOTAL[$n]:0;

I suspect some offending character in the translations. May I suspect
line 132 in the translated file?

äntligen är han s - écarté för att full .  (baseline)
äntligen han s ' är écarté för lägga den full . (tree - syntax in
source)

I cannot see anything strange.

Yours,
Per Tunedal

_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to