The score still zero.
And I am quite confused about this part, why the reference_length and translation_length are calculated in different way?
for (references, translation) in zip(reference_corpus, translation_corpus): reference_length += min(len(r) for r in references) translation_length += len(translation)
I tried to used the bleu.py for my translation result but the score always 0.0. Even I test on same sentences like
The score still zero. And I am quite confused about this part, why the reference_length and translation_length are calculated in different way?
for (references, translation) in zip(reference_corpus, translation_corpus): reference_length += min(len(r) for r in references) translation_length += len(translation)