ccdv commited on
Commit
4399c10
1 Parent(s): cec0c77
Files changed (1) hide show
  1. pubmed-summarization.py +11 -0
pubmed-summarization.py CHANGED
@@ -87,9 +87,20 @@ class PubMedSummarizationDataset(datasets.GeneratorBasedBuilder):
87
  val_path = dl_manager.download_and_extract(self._DOWNLOAD_URL + self._VAL_FILE)
88
  test_path = dl_manager.download_and_extract(self._DOWNLOAD_URL + self._TEST_FILE)
89
 
 
 
 
 
 
 
 
 
 
 
90
  #train_path = dl_manager.download_and_extract(self._TRAIN_FILE)
91
  #val_path = dl_manager.download_and_extract(self._VAL_FILE)
92
  #test_path = dl_manager.download_and_extract(self._TEST_FILE)
 
93
 
94
  return [
95
  datasets.SplitGenerator(
 
87
  val_path = dl_manager.download_and_extract(self._DOWNLOAD_URL + self._VAL_FILE)
88
  test_path = dl_manager.download_and_extract(self._DOWNLOAD_URL + self._TEST_FILE)
89
 
90
+ """
91
+ dl_paths = dl_manager.download_and_extract(self._TRAIN_FILE)
92
+ train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN)
93
+
94
+ dl_paths = dl_manager.download_and_extract(self._VAL_FILE)
95
+ train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN)
96
+
97
+ dl_paths = dl_manager.download_and_extract(self._TEST_FILE)
98
+ train_files = _subset_filenames(dl_paths, datasets.Split.TRAIN)
99
+ """
100
  #train_path = dl_manager.download_and_extract(self._TRAIN_FILE)
101
  #val_path = dl_manager.download_and_extract(self._VAL_FILE)
102
  #test_path = dl_manager.download_and_extract(self._TEST_FILE)
103
+ print(train_path, val_path, test_path)
104
 
105
  return [
106
  datasets.SplitGenerator(