harshakokel commited on
Commit
9a00efd
·
verified ·
1 Parent(s): 9886c0e

Update acp_bench.py

Browse files
Files changed (1) hide show
  1. acp_bench.py +8 -4
acp_bench.py CHANGED
@@ -59,22 +59,26 @@ class ACP(datasets.GeneratorBasedBuilder):
59
  ]
60
 
61
  def _info(self):
62
- features = datasets.Features(
63
- {
64
  "context": datasets.Value("string"),
65
  "question": datasets.Value("string"),
66
  "answer": datasets.Value("string"),
 
 
67
  }
68
- )
 
 
69
  return datasets.DatasetInfo(
70
  description=_DESCRIPTION,
71
- features=features,
72
  homepage=_HOMEPAGE,
73
  license=_LICENSE,
74
  citation=_CITATION,
75
  )
76
 
77
 
 
78
  def _split_generators(self, dl_manager):
79
  data_dir = dl_manager.download_and_extract(self.config.urls)
80
  return [
 
59
  ]
60
 
61
  def _info(self):
62
+ features = {
 
63
  "context": datasets.Value("string"),
64
  "question": datasets.Value("string"),
65
  "answer": datasets.Value("string"),
66
+ "group": datasets.Value("string"),
67
+ "id":datasets.Value("int32")
68
  }
69
+ if 'mcq' in self.config.name:
70
+ features["query"]= datasets.Value("string")
71
+ features["choices"]= datasets.features.Sequence(feature={'text': datasets.Value(dtype='string', id=None), 'label': datasets.Value(dtype='string', id=None)}, length=-1, id=None)
72
  return datasets.DatasetInfo(
73
  description=_DESCRIPTION,
74
+ features=datasets.Features(features),
75
  homepage=_HOMEPAGE,
76
  license=_LICENSE,
77
  citation=_CITATION,
78
  )
79
 
80
 
81
+
82
  def _split_generators(self, dl_manager):
83
  data_dir = dl_manager.download_and_extract(self.config.urls)
84
  return [