shunk031 commited on
Commit
2486626
1 Parent(s): c418b54

Update builder configs (#6)

Browse files

* fix typo

* remove default config name

* remove test for the default name

Files changed (2) hide show
  1. jsnli.py +2 -2
  2. tests/jsnli_test.py +0 -9
jsnli.py CHANGED
@@ -30,8 +30,8 @@ _URL = "https://nlp.ist.i.kyoto-u.ac.jp/DLcounter/lime.cgi?down=https://nlp.ist.
30
 
31
  class JSNLIDataset(ds.GeneratorBasedBuilder):
32
  VERSION = ds.Version("1.1.0") # type: ignore
33
- DEFAULT_CONFIG_NAME: str = "with-filtering" # type: ignore
34
- BUILDER_CONFIG = [
35
  ds.BuilderConfig(
36
  name="with-filtering",
37
  version=VERSION, # type: ignore
 
30
 
31
  class JSNLIDataset(ds.GeneratorBasedBuilder):
32
  VERSION = ds.Version("1.1.0") # type: ignore
33
+
34
+ BUILDER_CONFIGS = [
35
  ds.BuilderConfig(
36
  name="with-filtering",
37
  version=VERSION, # type: ignore
tests/jsnli_test.py CHANGED
@@ -24,12 +24,3 @@ def test_load_dataset(
24
 
25
  assert dataset["train"].num_rows == expected_num_train # type: ignore
26
  assert dataset["validation"].num_rows == expected_num_valid # type: ignore
27
-
28
-
29
- def test_load_dataset_default(
30
- dataset_path: str, expected_num_train: int = 533005, expected_num_valid: int = 3916
31
- ):
32
-
33
- dataset = ds.load_dataset(path=dataset_path)
34
- assert dataset["train"].num_rows == expected_num_train # type: ignore
35
- assert dataset["validation"].num_rows == expected_num_valid # type: ignore
 
24
 
25
  assert dataset["train"].num_rows == expected_num_train # type: ignore
26
  assert dataset["validation"].num_rows == expected_num_valid # type: ignore