Update README.md
Browse files
README.md
CHANGED
|
@@ -17,11 +17,11 @@ tags:
|
|
| 17 |
|
| 18 |
# Relation Extraction for Inverse Relations
|
| 19 |
|
| 20 |
-
This dataset is designed to evaluate the robustness of Relation Extraction (RE) models,
|
| 21 |
|
| 22 |
## Dataset Summary
|
| 23 |
|
| 24 |
-
The primary goal of this dataset is to test
|
| 25 |
1. **Inverse Mapping**: Every sample includes both the forward relation (e.g., *Mother*) and its logical inverse (e.g., *Child*).
|
| 26 |
2. **Artificial Substitutions**: A version of the dataset where real-world entities are replaced with synthetic names (e.g., replacing "Denmark" with "Emilyfort") to test if models rely on memorized entity knowledge rather than linguistic context.
|
| 27 |
|
|
@@ -42,7 +42,9 @@ The dataset is provided in JSON format and split into four main distributions:
|
|
| 42 |
* **Relation Metadata**: Supplemental files providing human-readable definitions for Wikidata P-IDs and TekGen relation strings.
|
| 43 |
|
| 44 |
### Key Fields
|
| 45 |
-
|
|
|
|
|
|
|
| 46 |
* `head` / `tail`: The subject and object entities.
|
| 47 |
* `head_to_tail`: The ID/Name of the forward relation.
|
| 48 |
* `tail_to_head`: The ID/Name of the inverse relation.
|
|
@@ -55,18 +57,22 @@ You can load this dataset for tasks such as:
|
|
| 55 |
* **Text Generation**: Generating a sentence that expresses a specific inverse relation.
|
| 56 |
|
| 57 |
### Repository
|
|
|
|
| 58 |
For scripts and more technical details on how the artificial data was generated, visit the official repository:
|
| 59 |
👉 [sefeoglu/inverserelations](https://github.com/sefeoglu/inverserelations)
|
| 60 |
|
| 61 |
## Citation
|
|
|
|
| 62 |
If you use this dataset in your research, please cite the original FewRel/TekGen papers and this repository.
|
| 63 |
|
| 64 |
```bibtex
|
| 65 |
-
|
|
|
|
| 66 |
author = {Sefeoglu},
|
| 67 |
title = {Relation Extraction for Inverse Relations from FewRel},
|
| 68 |
-
year = {
|
| 69 |
publisher = {GitHub/HuggingFace},
|
| 70 |
journal = {GitHub repository},
|
|
|
|
| 71 |
howpublished = {\url{[https://github.com/sefeoglu/inverserelations](https://github.com/sefeoglu/inverserelations)}}
|
| 72 |
-
}
|
|
|
|
| 17 |
|
| 18 |
# Relation Extraction for Inverse Relations
|
| 19 |
|
| 20 |
+
This dataset is designed to evaluate the robustness of Relation Extraction (RE) models, with a specific focus on **Inverse Relations** and entity substitution. It is derived from the **FewRel** and **TekGen** benchmarks (from Text2Bench).
|
| 21 |
|
| 22 |
## Dataset Summary
|
| 23 |
|
| 24 |
+
The primary goal of this dataset is to test whether models can recognize a relationship regardless of the direction or the surface form of the entities. It includes:
|
| 25 |
1. **Inverse Mapping**: Every sample includes both the forward relation (e.g., *Mother*) and its logical inverse (e.g., *Child*).
|
| 26 |
2. **Artificial Substitutions**: A version of the dataset where real-world entities are replaced with synthetic names (e.g., replacing "Denmark" with "Emilyfort") to test if models rely on memorized entity knowledge rather than linguistic context.
|
| 27 |
|
|
|
|
| 42 |
* **Relation Metadata**: Supplemental files providing human-readable definitions for Wikidata P-IDs and TekGen relation strings.
|
| 43 |
|
| 44 |
### Key Fields
|
| 45 |
+
|
| 46 |
+
* `tokens`: The input text (tokenized or raw string) in FewRel.
|
| 47 |
+
* `sent`: The input sentence (raw string) in Tekgen
|
| 48 |
* `head` / `tail`: The subject and object entities.
|
| 49 |
* `head_to_tail`: The ID/Name of the forward relation.
|
| 50 |
* `tail_to_head`: The ID/Name of the inverse relation.
|
|
|
|
| 57 |
* **Text Generation**: Generating a sentence that expresses a specific inverse relation.
|
| 58 |
|
| 59 |
### Repository
|
| 60 |
+
|
| 61 |
For scripts and more technical details on how the artificial data was generated, visit the official repository:
|
| 62 |
👉 [sefeoglu/inverserelations](https://github.com/sefeoglu/inverserelations)
|
| 63 |
|
| 64 |
## Citation
|
| 65 |
+
|
| 66 |
If you use this dataset in your research, please cite the original FewRel/TekGen papers and this repository.
|
| 67 |
|
| 68 |
```bibtex
|
| 69 |
+
|
| 70 |
+
@misc{fewrel_inverse_2025,
|
| 71 |
author = {Sefeoglu},
|
| 72 |
title = {Relation Extraction for Inverse Relations from FewRel},
|
| 73 |
+
year = {2025},
|
| 74 |
publisher = {GitHub/HuggingFace},
|
| 75 |
journal = {GitHub repository},
|
| 76 |
+
doi = { 10.57967/hf/8462 },
|
| 77 |
howpublished = {\url{[https://github.com/sefeoglu/inverserelations](https://github.com/sefeoglu/inverserelations)}}
|
| 78 |
+
}
|