Update metrics/f1.py
Browse files- metrics/f1.py +0 -4
metrics/f1.py
CHANGED
|
@@ -37,10 +37,6 @@ def f1_score(prediction, ground_truth):
|
|
| 37 |
return f1
|
| 38 |
|
| 39 |
|
| 40 |
-
def exact_match_score(prediction, ground_truth):
|
| 41 |
-
return normalize_answer(prediction) == normalize_answer(ground_truth)
|
| 42 |
-
|
| 43 |
-
|
| 44 |
def metric_max_over_ground_truths(metric_fn, prediction, ground_truths):
|
| 45 |
scores_for_ground_truths = []
|
| 46 |
for ground_truth in ground_truths:
|
|
|
|
| 37 |
return f1
|
| 38 |
|
| 39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
def metric_max_over_ground_truths(metric_fn, prediction, ground_truths):
|
| 41 |
scores_for_ground_truths = []
|
| 42 |
for ground_truth in ground_truths:
|