Fix parameter name.

This commit is contained in:
Marcus Edel
2021-04-10 20:28:36 +02:00
parent 1cda50f327
commit cf9bd906dc
+1 -1
View File
@@ -180,7 +180,7 @@ ElemType BLEU<ElemType, PrecisionType>::Evaluate(
ratio = ElemType(translationLength);
if (referenceLength > 0)
ration /= referenceLength;
ratio /= referenceLength;
brevityPenalty = (ratio > 1.0) ? 1.0 : std::exp(1.0 - 1.0 / ratio);
bleuScore = geometricMean * brevityPenalty;