Spaces:
Paused
Paused
Fix bug
Browse files- test_parascore.py +1 -1
test_parascore.py
CHANGED
@@ -128,7 +128,7 @@ class test_parascore(evaluate.Metric):
|
|
128 |
sbert_score = [round(v, 2) for v in score['score']]
|
129 |
diversity = self._diverse(predictions, references, lang)
|
130 |
|
131 |
-
score = [s + 0.05 * d for s, d in zip(
|
132 |
return {
|
133 |
"score": score,
|
134 |
}
|
|
|
128 |
sbert_score = [round(v, 2) for v in score['score']]
|
129 |
diversity = self._diverse(predictions, references, lang)
|
130 |
|
131 |
+
score = [s + 0.05 * d for s, d in zip(sbert_score, diversity)]
|
132 |
return {
|
133 |
"score": score,
|
134 |
}
|