Valahaar
commited on
Commit
·
88e5b61
1
Parent(s):
0a5dff4
test 2
Browse files
wsdmt.py
CHANGED
|
@@ -70,11 +70,13 @@ class WSDMTDataset(datasets.GeneratorBasedBuilder):
|
|
| 70 |
)
|
| 71 |
|
| 72 |
def _split_generators(self, dl_manager: DownloadManager):
|
| 73 |
-
urls =
|
| 74 |
-
|
|
|
|
|
|
|
|
|
|
| 75 |
for split in ['dev']
|
| 76 |
-
|
| 77 |
-
]
|
| 78 |
x = dl_manager.download_and_extract(urls)
|
| 79 |
print(x)
|
| 80 |
|
|
|
|
| 70 |
)
|
| 71 |
|
| 72 |
def _split_generators(self, dl_manager: DownloadManager):
|
| 73 |
+
urls = {
|
| 74 |
+
split: {
|
| 75 |
+
self.config.lang1: f"data/{self.config.corpus}/{split}/{self.config.lang1}.jsonl",
|
| 76 |
+
self.config.lang2: f"data/{self.config.corpus}/{split}/{self.config.lang2}.jsonl",
|
| 77 |
+
}
|
| 78 |
for split in ['dev']
|
| 79 |
+
}
|
|
|
|
| 80 |
x = dl_manager.download_and_extract(urls)
|
| 81 |
print(x)
|
| 82 |
|