Fix mapping error in GVQ evaluation
Browse files
evaluation/compute_metrics.py
CHANGED
|
@@ -666,9 +666,9 @@ def gvq_eval(samples, st):
|
|
| 666 |
continue
|
| 667 |
|
| 668 |
if len(sample['o']) == 4:
|
| 669 |
-
match_map = dict(a=0, b=1, c=2, d=
|
| 670 |
elif len(sample['o']) == 5:
|
| 671 |
-
match_map = dict(a=0, b=1, c=2, d=
|
| 672 |
else:
|
| 673 |
raise NotImplementedError
|
| 674 |
|
|
|
|
| 666 |
continue
|
| 667 |
|
| 668 |
if len(sample['o']) == 4:
|
| 669 |
+
match_map = dict(a=0, b=1, c=2, d=3)
|
| 670 |
elif len(sample['o']) == 5:
|
| 671 |
+
match_map = dict(a=0, b=1, c=2, d=3, e=4)
|
| 672 |
else:
|
| 673 |
raise NotImplementedError
|
| 674 |
|