sebastiaan
commited on
Commit
·
1d8fd65
1
Parent(s):
46b15c2
Update test-cefr.py
Browse files- test-cefr.py +4 -4
test-cefr.py
CHANGED
@@ -60,13 +60,13 @@ class CefrDataset(datasets.GeneratorBasedBuilder):
|
|
60 |
"""Returns SplitGenerators."""
|
61 |
my_urls = _URLS
|
62 |
data_dir = dl_manager.download_and_extract(my_urls)
|
63 |
-
|
64 |
return [
|
65 |
datasets.SplitGenerator(
|
66 |
name=datasets.Split.TRAIN,
|
67 |
# These kwargs will be passed to _generate_examples
|
68 |
gen_kwargs={
|
69 |
-
"filepath":
|
70 |
"split": "train",
|
71 |
},
|
72 |
),
|
@@ -74,7 +74,7 @@ class CefrDataset(datasets.GeneratorBasedBuilder):
|
|
74 |
name=datasets.Split.TEST,
|
75 |
# These kwargs will be passed to _generate_examples
|
76 |
gen_kwargs={
|
77 |
-
"filepath":
|
78 |
"split": "test"
|
79 |
},
|
80 |
),
|
@@ -82,7 +82,7 @@ class CefrDataset(datasets.GeneratorBasedBuilder):
|
|
82 |
name=datasets.Split.VALIDATION,
|
83 |
# These kwargs will be passed to _generate_examples
|
84 |
gen_kwargs={
|
85 |
-
"filepath":
|
86 |
"split": "val",
|
87 |
},
|
88 |
),
|
|
|
60 |
"""Returns SplitGenerators."""
|
61 |
my_urls = _URLS
|
62 |
data_dir = dl_manager.download_and_extract(my_urls)
|
63 |
+
|
64 |
return [
|
65 |
datasets.SplitGenerator(
|
66 |
name=datasets.Split.TRAIN,
|
67 |
# These kwargs will be passed to _generate_examples
|
68 |
gen_kwargs={
|
69 |
+
"filepath": data_dir["train"],
|
70 |
"split": "train",
|
71 |
},
|
72 |
),
|
|
|
74 |
name=datasets.Split.TEST,
|
75 |
# These kwargs will be passed to _generate_examples
|
76 |
gen_kwargs={
|
77 |
+
"filepath": data_dir["test"],
|
78 |
"split": "test"
|
79 |
},
|
80 |
),
|
|
|
82 |
name=datasets.Split.VALIDATION,
|
83 |
# These kwargs will be passed to _generate_examples
|
84 |
gen_kwargs={
|
85 |
+
"filepath": data_dir["val"],
|
86 |
"split": "val",
|
87 |
},
|
88 |
),
|