Spaces:
Runtime error
Runtime error
Heya
Browse files- metrica_tesi.py +3 -2
metrica_tesi.py
CHANGED
@@ -107,6 +107,7 @@ class MetricaTesi(evaluate.Metric):
|
|
107 |
if prediction == reference:
|
108 |
score += 1
|
109 |
score /= support
|
110 |
-
|
111 |
-
|
|
|
112 |
return results
|
|
|
107 |
if prediction == reference:
|
108 |
score += 1
|
109 |
score /= support
|
110 |
+
if support != 0:
|
111 |
+
results[f"support_{i}"] = support
|
112 |
+
results[f"score_{i}"] = score
|
113 |
return results
|