Felix
commited on
Commit
·
5ef976d
1
Parent(s):
1b998c2
update sweanalogy
Browse files- superlim-2.py +10 -10
superlim-2.py
CHANGED
@@ -194,11 +194,11 @@ class SuperLim(datasets.GeneratorBasedBuilder):
|
|
194 |
elif self.config.name == "sweana":
|
195 |
features = datasets.Features(
|
196 |
{
|
197 |
-
"
|
198 |
-
"
|
199 |
-
"
|
200 |
-
"
|
201 |
-
"
|
202 |
}
|
203 |
)
|
204 |
elif self.config.name == "swefaq":
|
@@ -376,11 +376,11 @@ class SuperLim(datasets.GeneratorBasedBuilder):
|
|
376 |
}
|
377 |
elif self.config.name == "sweana":
|
378 |
yield key, {
|
379 |
-
"
|
380 |
-
"
|
381 |
-
"
|
382 |
-
"
|
383 |
-
"
|
384 |
}
|
385 |
elif self.config.name == "swefaq":
|
386 |
yield key, {
|
|
|
194 |
elif self.config.name == "sweana":
|
195 |
features = datasets.Features(
|
196 |
{
|
197 |
+
"pair1_element1": datasets.Value("string"),
|
198 |
+
"pair1_element2": datasets.Value("string"),
|
199 |
+
"pair2_element1": datasets.Value("string"),
|
200 |
+
"pair2_element2": datasets.Value("string"),
|
201 |
+
"category": datasets.Value("string"),
|
202 |
}
|
203 |
)
|
204 |
elif self.config.name == "swefaq":
|
|
|
376 |
}
|
377 |
elif self.config.name == "sweana":
|
378 |
yield key, {
|
379 |
+
"pair1_element1": row["pair1_element1"],
|
380 |
+
"pair1_element2": row["pair1_element2"],
|
381 |
+
"pair2_element1": row["pair2_element1"],
|
382 |
+
"pair2_element2": row["pair2_element2"],
|
383 |
+
"category": row["category"],
|
384 |
}
|
385 |
elif self.config.name == "swefaq":
|
386 |
yield key, {
|