Commit ·
d603bb7
1
Parent(s): 4335d61
add manual_download_instructions
Browse files
aihub_summary_and_report.py
CHANGED
|
@@ -14,6 +14,7 @@
|
|
| 14 |
|
| 15 |
import os
|
| 16 |
import json
|
|
|
|
| 17 |
import zipfile
|
| 18 |
|
| 19 |
import datasets
|
|
@@ -117,6 +118,12 @@ class SummaryAndReport(datasets.GeneratorBasedBuilder):
|
|
| 117 |
description="Summary and Report Dataset",
|
| 118 |
)
|
| 119 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
|
| 121 |
def _info(self):
|
| 122 |
return datasets.DatasetInfo(
|
|
|
|
| 14 |
|
| 15 |
import os
|
| 16 |
import json
|
| 17 |
+
import textwrap
|
| 18 |
import zipfile
|
| 19 |
|
| 20 |
import datasets
|
|
|
|
| 118 |
description="Summary and Report Dataset",
|
| 119 |
)
|
| 120 |
]
|
| 121 |
+
|
| 122 |
+
manual_download_instructions = textwrap.dedent(f"""
|
| 123 |
+
You need to manually download the data file on AIHub (${_URL}).
|
| 124 |
+
The folder containing the saved file can be used to load the dataset
|
| 125 |
+
via 'datasets.load_dataset("aihub_scitech_translation.py", data_dir="<path/to/folder>")'
|
| 126 |
+
""")
|
| 127 |
|
| 128 |
def _info(self):
|
| 129 |
return datasets.DatasetInfo(
|