Datasets:
Tasks:
Text Classification
Sub-tasks:
multi-class-classification
Languages:
English
Size:
100K<n<1M
ArXiv:
Tags:
relation extraction
License:
fixed class label feature set for re-tacred
Browse files
tacred.py
CHANGED
@@ -285,7 +285,7 @@ class Tacred(datasets.GeneratorBasedBuilder):
|
|
285 |
"stanford_ner": datasets.Sequence(datasets.Value("string")),
|
286 |
"stanford_deprel": datasets.Sequence(datasets.Value("string")),
|
287 |
"stanford_head": datasets.Sequence(datasets.Value("int32")),
|
288 |
-
"relation": datasets.ClassLabel(names=_CLASS_LABELS),
|
289 |
}
|
290 |
)
|
291 |
|
|
|
285 |
"stanford_ner": datasets.Sequence(datasets.Value("string")),
|
286 |
"stanford_deprel": datasets.Sequence(datasets.Value("string")),
|
287 |
"stanford_head": datasets.Sequence(datasets.Value("int32")),
|
288 |
+
"relation": datasets.ClassLabel(names=_RETACRED_CLASS_LABELS if self.config.name == 're-tacred' else _CLASS_LABELS),
|
289 |
}
|
290 |
)
|
291 |
|