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
|
@@ -70,13 +70,8 @@ published at ACL 2020.
|
|
| 70 |
Note 2: This Datasetreader changes the offsets of the following fields, to conform with standard Python usage (see
|
| 71 |
#_generate_examples()):
|
| 72 |
- subj_end to subj_end + 1 (make end offset exclusive)
|
| 73 |
-
-
|
| 74 |
- stanford_head to stanford_head - 1 (make head offsets 0-based)
|
| 75 |
-
|
| 76 |
-
It also changes the names of some fields:
|
| 77 |
-
- token -> tokens
|
| 78 |
-
- stanford_ner -> ner_tags
|
| 79 |
-
- stanford_pos -> pos_tags
|
| 80 |
"""
|
| 81 |
|
| 82 |
_HOMEPAGE = "https://nlp.stanford.edu/projects/tacred/"
|
|
|
|
| 70 |
Note 2: This Datasetreader changes the offsets of the following fields, to conform with standard Python usage (see
|
| 71 |
#_generate_examples()):
|
| 72 |
- subj_end to subj_end + 1 (make end offset exclusive)
|
| 73 |
+
- obj_end to obj_end + 1 (make end offset exclusive)
|
| 74 |
- stanford_head to stanford_head - 1 (make head offsets 0-based)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
"""
|
| 76 |
|
| 77 |
_HOMEPAGE = "https://nlp.stanford.edu/projects/tacred/"
|