Felix
commited on
Commit
•
eceb157
1
Parent(s):
6f5a36d
add dev and train split of swewinograd to _split_generators
Browse files- superlim-2.py +5 -4
superlim-2.py
CHANGED
@@ -397,7 +397,8 @@ class SuperLim(datasets.GeneratorBasedBuilder):
|
|
397 |
},
|
398 |
)
|
399 |
splits.append(split_test)
|
400 |
-
if self.config.name in ("absabank-imm", "argumentation_sent", "dalaj-ged", "swefaq",
|
|
|
401 |
data_dir_dev = dl_manager.download_and_extract(os.path.join(_URL,DATA_FOLDER,f"{_TASKS[self.config.name]}_dev.{file_format}"))
|
402 |
split_dev = datasets.SplitGenerator(
|
403 |
name=datasets.Split.VALIDATION,
|
@@ -409,7 +410,7 @@ class SuperLim(datasets.GeneratorBasedBuilder):
|
|
409 |
splits.append(split_dev)
|
410 |
if self.config.name in ("absabank-imm", "argumentation_sent", "dalaj-ged", "swefaq",
|
411 |
"swewic", "swenli", "swedn", "swepar", "swesim_relatedness",
|
412 |
-
"swesim_similarity", "swesat", "sweana"):
|
413 |
data_dir_train = dl_manager.download_and_extract(os.path.join(_URL,DATA_FOLDER,f"{_TASKS[self.config.name]}_train.{file_format}"))
|
414 |
split_train = datasets.SplitGenerator(
|
415 |
name=datasets.Split.TRAIN,
|
@@ -515,10 +516,10 @@ class SuperLim(datasets.GeneratorBasedBuilder):
|
|
515 |
elif self.config.name == "swewic":
|
516 |
yield key, {
|
517 |
"idx": row["idx"],
|
518 |
-
"first": row["
|
519 |
"second": row["second"],
|
520 |
"label": row["label"],
|
521 |
-
"meta": row["
|
522 |
}
|
523 |
elif self.config.name == "swewinogender":
|
524 |
yield key, {
|
|
|
397 |
},
|
398 |
)
|
399 |
splits.append(split_test)
|
400 |
+
if self.config.name in ("absabank-imm", "argumentation_sent", "dalaj-ged", "swefaq",
|
401 |
+
"swewic", "swenli", "swedn", "swepar", "swewinograd"):
|
402 |
data_dir_dev = dl_manager.download_and_extract(os.path.join(_URL,DATA_FOLDER,f"{_TASKS[self.config.name]}_dev.{file_format}"))
|
403 |
split_dev = datasets.SplitGenerator(
|
404 |
name=datasets.Split.VALIDATION,
|
|
|
410 |
splits.append(split_dev)
|
411 |
if self.config.name in ("absabank-imm", "argumentation_sent", "dalaj-ged", "swefaq",
|
412 |
"swewic", "swenli", "swedn", "swepar", "swesim_relatedness",
|
413 |
+
"swesim_similarity", "swesat", "sweana", "swewinograd"):
|
414 |
data_dir_train = dl_manager.download_and_extract(os.path.join(_URL,DATA_FOLDER,f"{_TASKS[self.config.name]}_train.{file_format}"))
|
415 |
split_train = datasets.SplitGenerator(
|
416 |
name=datasets.Split.TRAIN,
|
|
|
516 |
elif self.config.name == "swewic":
|
517 |
yield key, {
|
518 |
"idx": row["idx"],
|
519 |
+
"first": row["first"],
|
520 |
"second": row["second"],
|
521 |
"label": row["label"],
|
522 |
+
"meta": row["meta"],
|
523 |
}
|
524 |
elif self.config.name == "swewinogender":
|
525 |
yield key, {
|