Felix
commited on
Commit
•
59a5da9
1
Parent(s):
a81208c
complete typing for swesat
Browse files- superlim-2.py +12 -12
superlim-2.py
CHANGED
@@ -282,18 +282,18 @@ class SuperLim(datasets.GeneratorBasedBuilder):
|
|
282 |
}
|
283 |
)
|
284 |
elif self.config.name == "swesat":
|
285 |
-
features = datasets.Features(
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
"
|
295 |
-
}
|
296 |
-
)
|
297 |
elif self.config.name == "swesim_relatedness":
|
298 |
features = datasets.Features(
|
299 |
{
|
|
|
282 |
}
|
283 |
)
|
284 |
elif self.config.name == "swesat":
|
285 |
+
features = datasets.Features({
|
286 |
+
"id": datasets.Value("string"),
|
287 |
+
"item": datasets.Value("string"),
|
288 |
+
"candidate_answers": datasets.Sequence(
|
289 |
+
datasets.Value("string"),
|
290 |
+
length=5)
|
291 |
+
,
|
292 |
+
"label": datasets.ClassLabel(5),
|
293 |
+
"meta": datasets.Features({
|
294 |
+
"comment": datasets.Value("string")
|
295 |
+
})
|
296 |
+
})
|
297 |
elif self.config.name == "swesim_relatedness":
|
298 |
features = datasets.Features(
|
299 |
{
|