baber commited on
Commit
52f75a0
1 Parent(s): a4dcbec
Files changed (1) hide show
  1. agieval.py +50 -46
agieval.py CHANGED
@@ -81,52 +81,57 @@ class AgiEval(datasets.GeneratorBasedBuilder):
81
  VERSION = datasets.Version("2.0.0")
82
 
83
  BUILDER_CONFIGS = [
84
- datasets.BuilderConfig(
85
- name="aqua_rat",
86
- version=VERSION,
87
- description=_DESCRIPTION,
88
- ),
89
- datasets.BuilderConfig(
90
- name="sat_en",
91
- version=VERSION,
92
- description=_DESCRIPTION,
93
- ),
94
- datasets.BuilderConfig(
95
- name="sat_en_wop",
96
- version=VERSION,
97
- description=_DESCRIPTION,
98
- ),
99
- datasets.BuilderConfig(
100
- name="sat_math",
101
- version=VERSION,
102
- description=_DESCRIPTION,
103
- ),
104
- datasets.BuilderConfig(
105
- name="lsat_ar",
106
- version=VERSION,
107
- description=_DESCRIPTION,
108
- ),
109
- datasets.BuilderConfig(
110
- name="lsat_lr",
111
- version=VERSION,
112
- description=_DESCRIPTION,
113
- ),
114
- datasets.BuilderConfig(
115
- name="lsat_rc",
116
- version=VERSION,
117
- description=_DESCRIPTION,
118
- ),
119
- datasets.BuilderConfig(
120
- name="logiqa",
121
- version=VERSION,
122
- description=_DESCRIPTION,
123
- ),
124
- datasets.BuilderConfig(
125
- name="math_agieval",
126
- version=VERSION,
127
- description=_DESCRIPTION,
128
- ),
129
  ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  DEFAULT_CONFIG_NAME = "aqua_rat"
131
 
132
  def _info(self):
@@ -158,7 +163,6 @@ class AgiEval(datasets.GeneratorBasedBuilder):
158
  }
159
  )
160
  elif self.config.name == "logiqa":
161
- # remove solution from other
162
  features = datasets.Features(
163
  {"passage": datasets.Value("string"),
164
  "question": datasets.Value("string"),
 
81
  VERSION = datasets.Version("2.0.0")
82
 
83
  BUILDER_CONFIGS = [
84
+ datasets.BuilderConfig(name=name, version=version, description=name)
85
+ for name, version in zip(list(_URLS.keys()), [VERSION] * len(list(_URLS.keys())))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  ]
87
+
88
+ # BUILDER_CONFIGS = [
89
+ # datasets.BuilderConfig(
90
+ # name="aqua_rat",
91
+ # version=VERSION,
92
+ # description=_DESCRIPTION,
93
+ # ),
94
+ # datasets.BuilderConfig(
95
+ # name="sat_en",
96
+ # version=VERSION,
97
+ # description=_DESCRIPTION,
98
+ # ),
99
+ # datasets.BuilderConfig(
100
+ # name="sat_en_wop",
101
+ # version=VERSION,
102
+ # description=_DESCRIPTION,
103
+ # ),
104
+ # datasets.BuilderConfig(
105
+ # name="sat_math",
106
+ # version=VERSION,
107
+ # description=_DESCRIPTION,
108
+ # ),
109
+ # datasets.BuilderConfig(
110
+ # name="lsat_ar",
111
+ # version=VERSION,
112
+ # description=_DESCRIPTION,
113
+ # ),
114
+ # datasets.BuilderConfig(
115
+ # name="lsat_lr",
116
+ # version=VERSION,
117
+ # description=_DESCRIPTION,
118
+ # ),
119
+ # datasets.BuilderConfig(
120
+ # name="lsat_rc",
121
+ # version=VERSION,
122
+ # description=_DESCRIPTION,
123
+ # ),
124
+ # datasets.BuilderConfig(
125
+ # name="logiqa",
126
+ # version=VERSION,
127
+ # description=_DESCRIPTION,
128
+ # ),
129
+ # datasets.BuilderConfig(
130
+ # name="math_agieval",
131
+ # version=VERSION,
132
+ # description=_DESCRIPTION,
133
+ # ),
134
+ # ]
135
  DEFAULT_CONFIG_NAME = "aqua_rat"
136
 
137
  def _info(self):
 
163
  }
164
  )
165
  elif self.config.name == "logiqa":
 
166
  features = datasets.Features(
167
  {"passage": datasets.Value("string"),
168
  "question": datasets.Value("string"),