shunk031 commited on
Commit
c418b54
1 Parent(s): 9bbf8bc

Revert "use `with-filtering` dataset as default setting (#4)" (#5)

Browse files

This reverts commit 9bbf8bc927e01bf889ec66507156d4aae8058cba.

Files changed (1) hide show
  1. jsnli.py +4 -4
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
- if "without-filtering" in self.config.name:
 
75
  tng_path = train_wo_filtering_path
76
  else:
77
- # use `with-filtering` dataset as default setting
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,