Datasets:
Tasks:
Text Classification
Sub-tasks:
multi-class-classification
Languages:
English
Size:
100K<n<1M
ArXiv:
Tags:
relation extraction
License:
Update tacred.py
Browse files
tacred.py
CHANGED
@@ -170,7 +170,7 @@ class Tacred(datasets.GeneratorBasedBuilder):
|
|
170 |
"To use TACRED you have to download it manually. "
|
171 |
"It is available via the LDC at https://catalog.ldc.upenn.edu/LDC2018T24"
|
172 |
"Please extract all files in one folder and load the dataset with: "
|
173 |
-
"`datasets.load_dataset('tacred', data_dir='path/to/folder/folder_name')`"
|
174 |
)
|
175 |
|
176 |
def _info(self):
|
@@ -225,7 +225,7 @@ class Tacred(datasets.GeneratorBasedBuilder):
|
|
225 |
|
226 |
if not os.path.exists(data_dir):
|
227 |
raise FileNotFoundError(
|
228 |
-
"{} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('tacred', data_dir=...)` that includes the unzipped files from the TACRED_LDC zip. Manual download instructions: {}".format(
|
229 |
data_dir, self.manual_download_instructions
|
230 |
)
|
231 |
)
|
|
|
170 |
"To use TACRED you have to download it manually. "
|
171 |
"It is available via the LDC at https://catalog.ldc.upenn.edu/LDC2018T24"
|
172 |
"Please extract all files in one folder and load the dataset with: "
|
173 |
+
"`datasets.load_dataset('DFKI-SLT/tacred', data_dir='path/to/folder/folder_name')`"
|
174 |
)
|
175 |
|
176 |
def _info(self):
|
|
|
225 |
|
226 |
if not os.path.exists(data_dir):
|
227 |
raise FileNotFoundError(
|
228 |
+
"{} does not exist. Make sure you insert a manual dir via `datasets.load_dataset('DFKI-SLT/tacred', data_dir=...)` that includes the unzipped files from the TACRED_LDC zip. Manual download instructions: {}".format(
|
229 |
data_dir, self.manual_download_instructions
|
230 |
)
|
231 |
)
|