Sefika commited on
Commit
8bb7b16
·
verified ·
1 Parent(s): 574a215

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +57 -10
README.md CHANGED
@@ -5,21 +5,68 @@ task_categories:
5
  - text-generation
6
  language:
7
  - en
8
- pretty_name: Relation Extraction for Inverse Relations from FewRel
9
  size_categories:
10
  - 1K<n<10K
 
 
 
 
 
11
  ---
12
 
13
- This dataset is generated from FewRel benchmak dataset.
14
- Relation pairs like:
15
- ```bash
16
- Child <-> Mother
17
 
18
- Child <-> Father
19
 
20
- Follows <-> Followed_by
21
 
22
- Has Part <-> Part of
23
- ```
 
24
 
25
- Its repository is : https://github.com/sefeoglu/inverserelations
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  - text-generation
6
  language:
7
  - en
8
+ pretty_name: Relation Extraction for Inverse Relations (FewRel & TekGen)
9
  size_categories:
10
  - 1K<n<10K
11
+ tags:
12
+ - relation-extraction
13
+ - nlp
14
+ - dataset-robustness
15
+ - inverse-relations
16
  ---
17
 
18
+ # Relation Extraction for Inverse Relations
 
 
 
19
 
20
+ This dataset is designed to evaluate the robustness of Relation Extraction (RE) models, specifically focusing on **Inverse Relations** and entity substitution. It is derived from the **FewRel** and **TekGen** benchmarks.
21
 
22
+ ## Dataset Summary
23
 
24
+ The primary goal of this dataset is to test if 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
 
28
+ ### Relation Examples
29
+ | Forward Relation | Inverse Relation |
30
+ | :--- | :--- |
31
+ | **Child** (P40) | **Mother** (P25) |
32
+ | **Child** (P40) | **Father** (P22) |
33
+ | **Follows** (P155) | **Followed by** (P156) |
34
+ | **Has Part** (P527) | **Part of** (P361) |
35
+
36
+ ## Dataset Structure
37
+
38
+ The dataset is provided in JSON format and split into four main distributions:
39
+
40
+ * **Original FewRel/TekGen**: The ground-truth sentences and relations.
41
+ * **Artificial FewRel/TekGen**: Sentences where entities have been substituted with synthetic placeholders.
42
+ * **Relation Metadata**: Supplemental files providing human-readable definitions for Wikidata P-IDs and TekGen relation strings.
43
+
44
+ ### Key Fields
45
+ * `tokens`: The input text (tokenized or raw string).
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.
49
+ * `artificial_data`: A mapping showing which `Original` entities were changed to which `Artifical` placeholders.
50
+
51
+ ## Usage
52
+
53
+ You can load this dataset for tasks such as:
54
+ * **Text Classification**: Predicting the relation ID between two entities.
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
+ @misc{fewrel_inverse_2024,
66
+ author = {Sefeoglu},
67
+ title = {Relation Extraction for Inverse Relations from FewRel},
68
+ year = {2024},
69
+ publisher = {GitHub/HuggingFace},
70
+ journal = {GitHub repository},
71
+ howpublished = {\url{[https://github.com/sefeoglu/inverserelations](https://github.com/sefeoglu/inverserelations)}}
72
+ }