Datasets:
Revert "use `with-filtering` dataset as default setting (#4)" (#5)
Browse filesThis reverts commit 9bbf8bc927e01bf889ec66507156d4aae8058cba.
jsnli.py
CHANGED
@@ -70,12 +70,12 @@ class JSNLIDataset(ds.GeneratorBasedBuilder):
|
|
70 |
train_wo_filtering_path = os.path.join(jsnli_dir, "train_wo_filtering.tsv")
|
71 |
|
72 |
dev_path = os.path.join(jsnli_dir, "dev.tsv")
|
73 |
-
|
74 |
-
|
|
|
75 |
tng_path = train_wo_filtering_path
|
76 |
else:
|
77 |
-
|
78 |
-
tng_path = train_w_filtering_path
|
79 |
|
80 |
tng_gen_kwargs = {
|
81 |
"tsv_path": tng_path,
|
|
|
70 |
train_wo_filtering_path = os.path.join(jsnli_dir, "train_wo_filtering.tsv")
|
71 |
|
72 |
dev_path = os.path.join(jsnli_dir, "dev.tsv")
|
73 |
+
if "with-filtering" in self.config.name:
|
74 |
+
tng_path = train_w_filtering_path
|
75 |
+
elif "without-filtering" in self.config.name:
|
76 |
tng_path = train_wo_filtering_path
|
77 |
else:
|
78 |
+
raise ValueError(f"Invalid config name: {self.config.name}")
|
|
|
79 |
|
80 |
tng_gen_kwargs = {
|
81 |
"tsv_path": tng_path,
|