Commit
·
85abb5e
1
Parent(s):
7b54938
Support streaming and loading on Windows (#2)
Browse files- Use os.path.join to join paths (c18c9aca2cff61d50dde2ce6b9f0f7fde86fb377)
Co-authored-by: Albert Villanova <albertvillanova@users.noreply.huggingface.co>
- pubmed-summarization.py +3 -3
pubmed-summarization.py
CHANGED
@@ -88,9 +88,9 @@ class PubMedSummarizationDataset(datasets.GeneratorBasedBuilder):
|
|
88 |
|
89 |
def _split_generators(self, dl_manager):
|
90 |
|
91 |
-
train_path = dl_manager.download_and_extract(self._TRAIN_FILE)
|
92 |
-
val_path = dl_manager.download_and_extract(self._VAL_FILE)
|
93 |
-
test_path = dl_manager.download_and_extract(self._TEST_FILE)
|
94 |
|
95 |
return [
|
96 |
datasets.SplitGenerator(
|
|
|
88 |
|
89 |
def _split_generators(self, dl_manager):
|
90 |
|
91 |
+
train_path = os.path.join(dl_manager.download_and_extract(self._TRAIN_FILE), "train.txt")
|
92 |
+
val_path = os.path.join(dl_manager.download_and_extract(self._VAL_FILE), "val.txt")
|
93 |
+
test_path = os.path.join(dl_manager.download_and_extract(self._TEST_FILE), "test.txt")
|
94 |
|
95 |
return [
|
96 |
datasets.SplitGenerator(
|