Datasets:
Tasks:
Text Classification
Sub-tasks:
multi-class-classification
Size:
100K<n<1M
ArXiv:
Tags:
relation extraction
License:
Update README.md
Browse files
README.md
CHANGED
@@ -4773,36 +4773,38 @@ dataset_info:
|
|
4773 |
- **Size of the generated dataset:** 40.9 MB
|
4774 |
- **Total amount of disk used:** 103.2 MB
|
4775 |
### Dataset Summary
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4776 |
|
4777 |
-
|
4778 |
-
|
4779 |
-
with language = config item. e.g. 'en-original', 'de-revised', 'ar-retacred' etc.
|
4780 |
|
|
|
4781 |
|
4782 |
NOTE: This Datasetreader supports a reduced version of the original TACRED JSON format with the following changes:
|
4783 |
- Removed fields: stanford_pos, stanford_ner, stanford_head, stanford_deprel, docid
|
4784 |
-
|
4785 |
The motivation for this is that we want to support additional languages, for which these fields were not required
|
4786 |
or available. The reader expects the specification of a language-specific configuration specifying the variant
|
4787 |
-
(original or
|
4788 |
-
|
4789 |
-
You can find the TACRED dataset reader for the original version of the
|
4790 |
-
dataset [here](https://huggingface.co/datasets/DFKI-SLT/tacred).
|
4791 |
-
|
4792 |
-
The TAC Relation Extraction Dataset (TACRED) is a large-scale relation extraction dataset with 106,264 examples built over newswire and web text from the corpus used in the yearly TAC Knowledge Base Population (TAC KBP) challenges. Examples in TACRED cover 41 relation types as used in the TAC KBP challenges (e.g., per:schools_attended
|
4793 |
-
and org:members) or are labeled as no_relation if no defined relation is held. These examples are created by combining available human annotations from the TAC
|
4794 |
-
KBP challenges and crowdsourcing. Please see [Stanford's EMNLP paper](https://nlp.stanford.edu/pubs/zhang2017tacred.pdf), or their [EMNLP slides](https://nlp.stanford.edu/projects/tacred/files/position-emnlp2017.pdf) for full details.
|
4795 |
-
|
4796 |
-
Note: There is currently a [label-corrected version](https://github.com/DFKI-NLP/tacrev) of the TACRED dataset, which you should consider using instead of
|
4797 |
-
the original version released in 2017. For more details on this new version, see the [TACRED Revisited paper](https://aclanthology.org/2020.acl-main.142/)
|
4798 |
-
published at ACL 2020.
|
4799 |
|
|
|
|
|
|
|
|
|
4800 |
|
|
|
|
|
4801 |
|
|
|
4802 |
|
4803 |
### Supported Tasks and Leaderboards
|
4804 |
- **Tasks:** Relation Classification
|
4805 |
-
- **Leaderboards:** [https://paperswithcode.com/sota/relation-extraction-on-
|
4806 |
|
4807 |
### Languages
|
4808 |
The languages in the dataset are Arabic, German, English, Spanish, Finnish, French, Hindi, Hungarian, Japanese, Polish, Russian, Turkish, and Chinese.
|
@@ -4816,14 +4818,14 @@ All languages except English are machine-translated using either Deepl's or Goog
|
|
4816 |
An example of 'train' looks as follows:
|
4817 |
```json
|
4818 |
{
|
4819 |
-
"id": "61b3a5c8c9a882dcfcd2",
|
4820 |
-
"
|
4821 |
-
"
|
4822 |
-
"subj_start":
|
4823 |
-
"subj_end": 13,
|
4824 |
-
"obj_start": 0,
|
4825 |
-
"obj_end":
|
4826 |
-
"subj_type": "ORGANIZATION",
|
4827 |
"obj_type": "PERSON"
|
4828 |
}
|
4829 |
```
|
@@ -4844,21 +4846,21 @@ To miminize dataset bias, TACRED is stratified across years in which the TAC KBP
|
|
4844 |
Languages statistics for the splits differ because not all instances could be translated with the
|
4845 |
subject and object entity markup still intact, these were discarded.
|
4846 |
|
4847 |
-
| Language
|
4848 |
-
| -----
|
4849 |
-
|
|
4850 |
-
| ar
|
4851 |
-
| de
|
4852 |
-
| es
|
4853 |
-
| fi
|
4854 |
-
| fr
|
4855 |
-
| hi
|
4856 |
-
| hu
|
4857 |
-
| ja
|
4858 |
-
| pl
|
4859 |
-
| ru
|
4860 |
-
| tr
|
4861 |
-
| zh
|
4862 |
|
4863 |
## Dataset Creation
|
4864 |
### Curation Rationale
|
@@ -4923,8 +4925,6 @@ For the revised version, please also cite:
|
|
4923 |
doi = "10.18653/v1/2020.acl-main.142",
|
4924 |
pages = "1558--1569",
|
4925 |
}
|
4926 |
-
|
4927 |
-
|
4928 |
```
|
4929 |
|
4930 |
For the Re-TACRED version, please also cite:
|
@@ -4946,4 +4946,4 @@ For the Re-TACRED version, please also cite:
|
|
4946 |
}
|
4947 |
```
|
4948 |
### Contributions
|
4949 |
-
Thanks to [@leonhardhennig](https://github.com/leonhardhennig) for adding this dataset.
|
|
|
4773 |
- **Size of the generated dataset:** 40.9 MB
|
4774 |
- **Total amount of disk used:** 103.2 MB
|
4775 |
### Dataset Summary
|
4776 |
+
MultiTACRED is a multilingual version of the large-scale [https://nlp.stanford.edu/projects/tacred/](TAC Relation
|
4777 |
+
Extraction Dataset). It covers 12 typologically diverse languages from 9 language families, and was created by the
|
4778 |
+
Speech & Language Technology group of DFKI by machine-translating the instances of the original TACRED dataset and
|
4779 |
+
automatically projecting their entity annotations. For details of the original TACRED's data collection and
|
4780 |
+
annotation process, see the [https://aclanthology.org/D17-1004/](original paper). Translations are syntactically
|
4781 |
+
validated by checking the correctness of the XML tag markup. Any translations with an invalid tag structure, e.g.
|
4782 |
+
missing or invalid head or tail tag pairs, are discarded (on average, 2.3% of the instances).
|
4783 |
|
4784 |
+
Languages covered are: Arabic, Chinese, Finnish, French, German, Hindi, Hungarian, Japanese, Polish,
|
4785 |
+
Russian, Spanish, Turkish. Intended use is supervised relation classification. Audience - researchers.
|
|
|
4786 |
|
4787 |
+
Please see [https://arxiv.org/abs/2305.04582](our ACL paper) for full details.
|
4788 |
|
4789 |
NOTE: This Datasetreader supports a reduced version of the original TACRED JSON format with the following changes:
|
4790 |
- Removed fields: stanford_pos, stanford_ner, stanford_head, stanford_deprel, docid
|
|
|
4791 |
The motivation for this is that we want to support additional languages, for which these fields were not required
|
4792 |
or available. The reader expects the specification of a language-specific configuration specifying the variant
|
4793 |
+
(original, revisited or retacred) and the language (as a two-letter iso code).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4794 |
|
4795 |
+
The DatasetReader changes the offsets of the following fields, to conform with standard Python usage (see
|
4796 |
+
_generate_examples()):
|
4797 |
+
- subj_end to subj_end + 1 (make end offset exclusive)
|
4798 |
+
- obj_end to obj_end + 1 (make end offset exclusive)
|
4799 |
|
4800 |
+
NOTE 2: The MultiTACRED dataset offers an additional 'split', namely the backtranslated test data (translated to a
|
4801 |
+
target language and then back to English). To access this split, use dataset['backtranslated_test'].
|
4802 |
|
4803 |
+
You can find the TACRED dataset reader for the English version of the dataset [here](https://huggingface.co/datasets/DFKI-SLT/tacred).
|
4804 |
|
4805 |
### Supported Tasks and Leaderboards
|
4806 |
- **Tasks:** Relation Classification
|
4807 |
+
- **Leaderboards:** [https://paperswithcode.com/sota/relation-extraction-on-multitacred](https://paperswithcode.com/sota/relation-extraction-on-multitacred)
|
4808 |
|
4809 |
### Languages
|
4810 |
The languages in the dataset are Arabic, German, English, Spanish, Finnish, French, Hindi, Hungarian, Japanese, Polish, Russian, Turkish, and Chinese.
|
|
|
4818 |
An example of 'train' looks as follows:
|
4819 |
```json
|
4820 |
{
|
4821 |
+
"id": "61b3a5c8c9a882dcfcd2",
|
4822 |
+
"token": ["Tom", "Thabane", "trat", "im", "Oktober", "letzten", "Jahres", "zurück", ",", "um", "die", "All", "Basotho", "Convention", "-LRB-", "ABC", "-RRB-", "zu", "gründen", ",", "die", "mit", "17", "Abgeordneten", "das", "Wort", "ergriff", ",", "woraufhin", "der", "konstitutionelle", "Monarch", "König", "Letsie", "III.", "das", "Parlament", "auflöste", "und", "Neuwahlen", "ansetzte", "."],
|
4823 |
+
"relation": "org:founded_by",
|
4824 |
+
"subj_start": 11,
|
4825 |
+
"subj_end": 13,
|
4826 |
+
"obj_start": 0,
|
4827 |
+
"obj_end": 1,
|
4828 |
+
"subj_type": "ORGANIZATION",
|
4829 |
"obj_type": "PERSON"
|
4830 |
}
|
4831 |
```
|
|
|
4846 |
Languages statistics for the splits differ because not all instances could be translated with the
|
4847 |
subject and object entity markup still intact, these were discarded.
|
4848 |
|
4849 |
+
| Language | Train | Dev | Test | Backtranslated Test | Translation Engine |
|
4850 |
+
| ----- | ------ | ----- | ---- | ---- | ---- |
|
4851 |
+
| en | 68,124 | 22,631 | 15,509 | - | - |
|
4852 |
+
| ar | 67,736 | 22,502 | 15,425 | 15,425 | Google |
|
4853 |
+
| de | 67,253 | 22,343 | 15,282 | 15,079 | DeepL |
|
4854 |
+
| es | 65,247 | 21,697 | 14,908 | 14,688 | DeepL |
|
4855 |
+
| fi | 66,751 | 22,268 | 15,083 | 14,462 | DeepL |
|
4856 |
+
| fr | 66,856 | 22,298 | 15,237 | 15,088 | DeepL |
|
4857 |
+
| hi | 67,751 | 22,511 | 15,440 | 15,440 | Google |
|
4858 |
+
| hu | 67,766 | 22,519 | 15,436 | 15,436 | Google |
|
4859 |
+
| ja | 61,571 | 20,290 | 13,701 | 12,913 | DeepL |
|
4860 |
+
| pl | 68,124 | 22,631 | 15,509 | 15,509 | Google |
|
4861 |
+
| ru | 66,413 | 21,998 | 14,995 | 14,703 | DeepL |
|
4862 |
+
| tr | 67,749 | 22,510 | 15,429 | 15,429 | Google |
|
4863 |
+
| zh | 65,260 | 21,538 | 14,694 | 14,021 | DeepL |
|
4864 |
|
4865 |
## Dataset Creation
|
4866 |
### Curation Rationale
|
|
|
4925 |
doi = "10.18653/v1/2020.acl-main.142",
|
4926 |
pages = "1558--1569",
|
4927 |
}
|
|
|
|
|
4928 |
```
|
4929 |
|
4930 |
For the Re-TACRED version, please also cite:
|
|
|
4946 |
}
|
4947 |
```
|
4948 |
### Contributions
|
4949 |
+
Thanks to [@leonhardhennig](https://github.com/leonhardhennig) for adding this dataset.
|