Datasets:

Modalities:
Text
Formats:
text
Size:
< 1K
ArXiv:
Libraries:
Datasets
License:
yeliudev commited on
Commit
2d7bce9
1 Parent(s): dc86e11

Fix mapping error in GVQ evaluation

Browse files
Files changed (1) hide show
  1. evaluation/compute_metrics.py +2 -2
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=4)
670
  elif len(sample['o']) == 5:
671
- match_map = dict(a=0, b=1, c=2, d=4, e=5)
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