Commit
•
c18c9ac
1
Parent(s):
7b54938
Use os.path.join to join paths
Browse files- 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(
|