Datasets:

License:
kimsan0622 commited on
Commit
fda2ea6
·
1 Parent(s): 176c93a

add manual_download_instructions

Browse files
Files changed (1) hide show
  1. aihub_document_summarization.py +7 -0
aihub_document_summarization.py CHANGED
@@ -14,6 +14,7 @@
14
 
15
  import os
16
  from typing import List, Tuple
 
17
  import json
18
  import zipfile
19
 
@@ -185,6 +186,12 @@ class AIHubDocumentSummarization(datasets.GeneratorBasedBuilder):
185
 
186
  BUILDER_CONFIG_CLASS = AIHubDocumentSummarizationConfig
187
  DEFAULT_CONFIG_NAME = "default"
 
 
 
 
 
 
188
 
189
  def _info(self):
190
  return datasets.DatasetInfo(
 
14
 
15
  import os
16
  from typing import List, Tuple
17
+ import textwrap
18
  import json
19
  import zipfile
20
 
 
186
 
187
  BUILDER_CONFIG_CLASS = AIHubDocumentSummarizationConfig
188
  DEFAULT_CONFIG_NAME = "default"
189
+
190
+ manual_download_instructions = textwrap.dedent(f"""
191
+ You need to manually download the data file on AIHub (${_URL}).
192
+ The folder containing the saved file can be used to load the dataset
193
+ via 'datasets.load_dataset("aihub_scitech_translation.py", data_dir="<path/to/folder>")'
194
+ """)
195
 
196
  def _info(self):
197
  return datasets.DatasetInfo(