Commit 88a8bd42 authored by Myle Ott's avatar Myle Ott
Browse files

Fix smoothed (sentence-level) BLEU calculation

parent d92ce54c
...@@ -104,11 +104,11 @@ void bleu_zero_init(bleu_stat* stat) { ...@@ -104,11 +104,11 @@ void bleu_zero_init(bleu_stat* stat) {
void bleu_one_init(bleu_stat* stat) { void bleu_one_init(bleu_stat* stat) {
bleu_zero_init(stat); bleu_zero_init(stat);
stat->count1 = 1; stat->count1 = 0;
stat->count2 = 1; stat->count2 = 1;
stat->count3 = 1; stat->count3 = 1;
stat->count4 = 1; stat->count4 = 1;
stat->match1 = 1; stat->match1 = 0;
stat->match2 = 1; stat->match2 = 1;
stat->match3 = 1; stat->match3 = 1;
stat->match4 = 1; stat->match4 = 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment