visualjoyce
commited on
Commit
•
3422e53
1
Parent(s):
7aba1e5
Add zh, en, xl
Browse files
ipquiz.py
CHANGED
@@ -105,13 +105,13 @@ class IPQuizDataset(datasets.GeneratorBasedBuilder):
|
|
105 |
# dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLS
|
106 |
# It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
|
107 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
108 |
-
data_dir = dl_manager.download_and_extract(urls)
|
109 |
return [
|
110 |
datasets.SplitGenerator(
|
111 |
name=datasets.Split.TEST,
|
112 |
# These kwargs will be passed to _generate_examples
|
113 |
gen_kwargs={
|
114 |
-
"filepath":
|
115 |
"split": "test"
|
116 |
},
|
117 |
),
|
|
|
105 |
# dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLS
|
106 |
# It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
|
107 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
108 |
+
# data_dir = dl_manager.download_and_extract(urls)
|
109 |
return [
|
110 |
datasets.SplitGenerator(
|
111 |
name=datasets.Split.TEST,
|
112 |
# These kwargs will be passed to _generate_examples
|
113 |
gen_kwargs={
|
114 |
+
"filepath": f"{self.config.name}.jsonl",
|
115 |
"split": "test"
|
116 |
},
|
117 |
),
|