No rounding for now
Browse files
gleu.py
CHANGED
@@ -240,6 +240,6 @@ class gleu(evaluate.Metric):
|
|
240 |
iter_stats[j] = [sum(scores) for scores in zip(iter_stats[j], this_stats)]
|
241 |
|
242 |
sent_scores = [gleu_calculator.compute_gleu(stats) for stats in iter_stats]
|
243 |
-
mean_score =
|
244 |
std_score = round(std(sent_scores),2)
|
245 |
return {"mean_gleu_score": mean_score}
|
|
|
240 |
iter_stats[j] = [sum(scores) for scores in zip(iter_stats[j], this_stats)]
|
241 |
|
242 |
sent_scores = [gleu_calculator.compute_gleu(stats) for stats in iter_stats]
|
243 |
+
mean_score = mean(sent_scores)
|
244 |
std_score = round(std(sent_scores),2)
|
245 |
return {"mean_gleu_score": mean_score}
|