You have a zero-length line. BLEU isn't well defined for this case. Though it would be nicer if NIST's script provided a better error message/had an option to skip empty lines.
On 08/31/2015 02:33 PM, Dingyuan Wang wrote: > Dear all, > > When using EMS, step EVALUATION:test:nist-bleu(-c) crashed with "Illegal > division by zero at mteval-v13a.pl line 890". > > I saw this error first time, and training the other direction with the > same config is fine. Previous experiments didn't cause this error. > > The script is the latest version on GitHub. > > Attached is the files that causes the problem. The command line is: > perl mteval-v13a.pl -s t.zhc-zh.zhc.sgm -r t.zhc-zh.zh.sgm -t > test.detokenized.sgm.2 > > > > _______________________________________________ > Moses-support mailing list > [email protected] > http://mailman.mit.edu/mailman/listinfo/moses-support > _______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
