Upload PAIR.py
Browse files
PAIR.py
CHANGED
@@ -109,22 +109,22 @@ class PAIRDataset(datasets.GeneratorBasedBuilder):
|
|
109 |
# dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLS
|
110 |
# 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.
|
111 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
112 |
-
|
113 |
-
data_dir = dl_manager.download_and_extract(urls)
|
114 |
return [
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
datasets.SplitGenerator(
|
124 |
name=datasets.Split.TEST,
|
125 |
# These kwargs will be passed to _generate_examples
|
126 |
gen_kwargs={
|
127 |
-
"filepath": os.path.join(data_dir, "test.json"),
|
128 |
"split": "test"
|
129 |
},
|
130 |
),
|
|
|
109 |
# dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLS
|
110 |
# 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.
|
111 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
112 |
+
# urls = _URLS[self.config.name]
|
113 |
+
#data_dir = dl_manager.download_and_extract(urls)
|
114 |
return [
|
115 |
+
# datasets.SplitGenerator(
|
116 |
+
# name=datasets.Split.TRAIN,
|
117 |
+
# # These kwargs will be passed to _generate_examples
|
118 |
+
### gen_kwargs={
|
119 |
+
# "filepath": os.path.join(data_dir, "train.json"),
|
120 |
+
# "split": "train",
|
121 |
+
# },
|
122 |
+
# ),
|
123 |
datasets.SplitGenerator(
|
124 |
name=datasets.Split.TEST,
|
125 |
# These kwargs will be passed to _generate_examples
|
126 |
gen_kwargs={
|
127 |
+
"filepath": "test.json", #os.path.join(data_dir, "test.json"),
|
128 |
"split": "test"
|
129 |
},
|
130 |
),
|