Jinrui commited on
Commit
a5263ee
·
verified ·
1 Parent(s): 0d6c0b2

Add disambiguated WordNet dataset with name+definition format

Browse files
MixedHop-RandomNegatives-Pairs/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d9ad12315372560b879e14ca914c17ee3da71e0892b352c8818479ec5da0dbf
3
+ size 22876730
MixedHop-RandomNegatives-Pairs/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b077ced499d2a78fd5e08b0d88781dcec75aaa21208e4ba49de2bcbf82f8e0d
3
+ size 48478825
MixedHop-RandomNegatives-Pairs/val.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca13d1b7928a8f62907aa46c733b46088667097dee94e62bd94eb68bde9bef48
3
+ size 22896188
MixedHop-RandomNegatives-Triplets/test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23a9b9f2822a421382d49813ecfcb7965b78638eb131a3d70e69b66015eb814a
3
+ size 22988657
MixedHop-RandomNegatives-Triplets/train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba2b6cdeee074c90535b0bf9d02f770906de60a09e75fef76e6bf482ecf45e34
3
+ size 48885968
MixedHop-RandomNegatives-Triplets/val.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd0f15e1a39b07f4acf00649669e934ba4169150505644e3e7809fd3db837085
3
+ size 23005923
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # WordNetNoun (Disambiguated Version)
2
+
3
+ This is a **disambiguated version** of the WordNet Noun hierarchy dataset, where entity names are formatted as `name: definition` to resolve polysemy issues.
4
+
5
+ ## Disambiguation
6
+
7
+ **Original format (ambiguous):**
8
+ ```
9
+ child: "bank"
10
+ parent: "slope"
11
+ ```
12
+
13
+ **New format (disambiguated):**
14
+ ```
15
+ child: "bank: sloping land (especially the slope beside a body of water)"
16
+ parent: "slope: an elevated geological formation"
17
+ ```
18
+
19
+ ## Problem Solved
20
+
21
+ In the original dataset, the word "bank" appears with multiple meanings:
22
+ - bank.n.01: "sloping land" → parent: slope
23
+ - bank.n.09: "a building in which banking transacted" → parent: depository
24
+ - bank.n.10: "flight maneuver" → parent: flight maneuver
25
+ - ... (8 different senses total)
26
+
27
+ This caused **training signal conflicts** where the same text "bank" needed to be embedded close to multiple different parents simultaneously.
28
+
29
+ ## Dataset Structure
30
+
31
+ Following the same structure as [Hierarchy-Transformers/WordNetNoun](https://huggingface.co/datasets/Hierarchy-Transformers/WordNetNoun):
32
+
33
+ - `MixedHop-RandomNegatives-Pairs/`: (child, parent, label) format for evaluation
34
+ - `MixedHop-RandomNegatives-Triplets/`: (child, parent, negative) format for training
35
+
36
+ Each contains train/val/test splits in parquet format.
37
+
38
+ ## Statistics
39
+
40
+ - **Train**: 750,915 pairs / 682,650 triplets
41
+ - **Val**: 364,925 pairs / 331,750 triplets
42
+ - **Test**: 364,936 pairs / 331,760 triplets
43
+ - **Total entities**: 74,401 (with definitions)
44
+
45
+ ## Source
46
+
47
+ - **Original data**: [Zenodo 10511042](https://doi.org/10.5281/zenodo.10511042)
48
+ - **Modification**: Added WordNet definitions to entity names for disambiguation
49
+ - **Code**: Modified `hierarchy_transformers.datasets.load` module
50
+
51
+ ## Usage
52
+
53
+ ```python
54
+ from datasets import load_dataset
55
+
56
+ # Load disambiguated dataset
57
+ ds = load_dataset("Jinrui/WordNetNoun", "MixedHop-RandomNegatives-Pairs")
58
+
59
+ # Example
60
+ print(ds['train'][0])
61
+ # {
62
+ # 'child': 'boarhound: large hound used in hunting wild boars',
63
+ # 'parent': 'hound: any of several breeds of dog used for hunting...',
64
+ # 'label': 1
65
+ # }
66
+ ```
67
+
68
+ ## Citation
69
+
70
+ If you use this dataset, please cite the original HierarchyTransformers paper:
71
+
72
+ ```bibtex
73
+ @inproceedings{he2024language,
74
+ title={Language Models as Hierarchy Encoders},
75
+ author={He, Yuan and Yuan, Zhangdie and Chen, Jiaoyan and Horrocks, Ian},
76
+ booktitle={Advances in Neural Information Processing Systems},
77
+ year={2024}
78
+ }
79
+ ```
80
+
81
+ ## License
82
+
83
+ Same as the original dataset (Apache 2.0).
84
+