arka0821 commited on
Commit
bf5b7e9
1 Parent(s): b275f79

Update multi_document_summarization.py

Browse files
Files changed (1) hide show
  1. multi_document_summarization.py +3 -6
multi_document_summarization.py CHANGED
@@ -69,13 +69,10 @@ class MultiDocumentSum(datasets.GeneratorBasedBuilder):
69
 
70
  def _split_generators(self, dl_manager):
71
  """Returns SplitGenerators."""
72
- """train_path = dl_manager.download_and_extract(_URL_TRAIN)
 
73
  test_path = dl_manager.download_and_extract(_URL_TEST)
74
- val_path = dl_manager.download_and_extract(_URL_VAL)"""
75
-
76
- train_path = datasets.DatasetBuilder.download_and_prepare(self,base_path=_URL_TRAIN,download_mode="force_redownload")
77
- test_path = datasets.DatasetBuilder.download_and_prepare(self,base_path=_URL_TEST,download_mode="force_redownload")
78
- val_path = datasets.DatasetBuilder.download_and_prepare(self,base_path=_URL_VAL,download_mode="force_redownload")
79
 
80
  return [
81
  datasets.SplitGenerator(
 
69
 
70
  def _split_generators(self, dl_manager):
71
  """Returns SplitGenerators."""
72
+ dl_manager.DownloadConfig.force_download=True
73
+ train_path = dl_manager.download_and_extract(_URL_TRAIN)
74
  test_path = dl_manager.download_and_extract(_URL_TEST)
75
+ val_path = dl_manager.download_and_extract(_URL_VAL)
 
 
 
 
76
 
77
  return [
78
  datasets.SplitGenerator(