lawhy commited on
Commit
a6267f6
·
verified ·
1 Parent(s): 536af43

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +122 -0
README.md ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: Schema.org Subsumption (TBox) Hierarchy.
3
+ description: >
4
+ This dataset is a collection of Multi-hop Inference and Mixed-hop Prediction
5
+ datasets created from Schema.org subsumption (TBox) hierarchy for evaluating hierarchy embedding models.
6
+ license: apache-2.0
7
+ language:
8
+ - en
9
+ multilinguality:
10
+ - monolingual
11
+ size_categories:
12
+ - 1M<n<10M
13
+ task_categories:
14
+ - feature-extraction
15
+ - sentence-similarity
16
+ pretty_name: Schemaorg
17
+ tags:
18
+ - hierarchy-transformers
19
+ - sentence-transformers
20
+ configs:
21
+ - config_name: MixedHop-RandomNegatives-Triplets
22
+ description: >
23
+ A dataset for Mixed-hop Prediction with random negatives; samples formatted
24
+ as triplets.
25
+ data_files:
26
+ - split: val
27
+ path: MixedHop-RandomNegatives-Triplets/val*
28
+ - split: test
29
+ path: MixedHop-RandomNegatives-Triplets/test*
30
+ - config_name: MixedHop-HardNegatives-Triplets
31
+ description: >
32
+ A dataset for Mixed-hop Prediction with hard negatives; samples formatted as
33
+ triplets.
34
+ data_files:
35
+ - split: val
36
+ path: MixedHop-HardNegatives-Triplets/val*
37
+ - split: test
38
+ path: MixedHop-HardNegatives-Triplets/test*
39
+ - config_name: MixedHop-RandomNegatives-Pairs
40
+ description: >
41
+ A dataset for Mixed-hop Prediction with random negatives; samples formatted
42
+ as pairs.
43
+ data_files:
44
+ - split: val
45
+ path: MixedHop-RandomNegatives-Pairs/val*
46
+ - split: test
47
+ path: MixedHop-RandomNegatives-Pairs/test*
48
+ - config_name: MixedHop-HardNegatives-Pairs
49
+ description: >
50
+ A dataset for Mixed-hop Prediction with hard negatives; samples formatted as
51
+ pairs.
52
+ data_files:
53
+ - split: val
54
+ path: MixedHop-HardNegatives-Pairs/val*
55
+ - split: test
56
+ path: MixedHop-HardNegatives-Pairs/test*
57
+ ---
58
+
59
+ # Dataset Card for Schemaorg
60
+
61
+ This dataset is a collection of **Mixed-hop Prediction** datasets created from Schema.org subsumption (TBox) hierarchy for evaluating hierarchy embedding models. It is an evaluation-only dataset consisting of just validation and test splits.
62
+
63
+ <!-- - **Multi-hop Inference**: This task aims to evaluate the model’s ability in deducing indirect, multi-hop subsumptions from direct, one-hop subsumptions, so as to simulate transitive inference. -->
64
+ - **Mixed-hop Prediction**: This task aims to evaluate the model’s capability in determining the existence of subsumption relationships between arbitrary entity pairs, where the entities are not necessarily seen during training. The transfer setting of this task involves training models on asserted training edges of one hierarchy testing on arbitrary entity pairs of another.
65
+
66
+ See our published [paper](https://arxiv.org/abs/2401.11374) for more detail.
67
+
68
+
69
+ ## Links
70
+
71
+ - **GitHub Repository:** https://github.com/KRR-Oxford/HierarchyTransformers
72
+ - **Huggingface Page**: https://huggingface.co/Hierarchy-Transformers
73
+ - **Zenodo Release**: https://doi.org/10.5281/zenodo.10511042
74
+ - **Paper:** [Language Models as Hierarchy Encoders](https://arxiv.org/abs/2401.11374) (NeurIPS 2024).
75
+
76
+ The information of original entity IDs is not available in the Huggingface release; To map entities back to their original hierarchies, refer to this [Zenodo release](https://doi.org/10.5281/zenodo.10511042).
77
+
78
+
79
+ ## Dataset Structure
80
+
81
+ Each subset in this dataset follows the naming convention `TaskType-NegativeType-SampleStructure`:
82
+
83
+ - `TaskType`: Either `MultiHop` or `MixedHop`, indicating the type of hierarchy evaluation task.
84
+
85
+ > In this dataset, only `MixedHop` is available.
86
+
87
+ - `NegativeType`: Either `RandomNegatives` or `HardNegatives`, specifying the strategy used for negative sampling.
88
+
89
+ - `SampleStructure`: Either `Triplets` or `Pairs`, indicating the format of the samples.
90
+ - In `Triplets`, each sample is structured as `(child, parent, negative)`.
91
+ - In `Pairs`, each sample is a labelled pair `(child, parent, label)`, where `label=1` denotes a positive subsumption and `label=0` denotes a negative subsumption.
92
+
93
+ For example, to load a subset for the **Mixed-hop Prediction** task with **random negatives** and samples presented as **triplets**, we can use the following command:
94
+
95
+ ```python
96
+ from datasets import load_dataset
97
+ dataset = load_dataset("Hierarchy-Transformers/Schemaorg", "MixedHop-RandomNegatives-Triplets")
98
+ ```
99
+
100
+
101
+ ## Dataset Usage
102
+
103
+ - For **evaluation**, the `Pairs` sample structure should be adopted, as it allows for the computation of Precision, Recall, and F1 scores.
104
+
105
+ - For **training**, the choice between `Pairs`, `Triplets`, or more complex sample structures depends on the model's design and specific requirements.
106
+
107
+ ## Citation
108
+
109
+ The relevant paper has been accepted at NeurIPS 2024 (to appear).
110
+
111
+ ```
112
+ @article{he2024language,
113
+ title={Language models as hierarchy encoders},
114
+ author={He, Yuan and Yuan, Zhangdie and Chen, Jiaoyan and Horrocks, Ian},
115
+ journal={arXiv preprint arXiv:2401.11374},
116
+ year={2024}
117
+ }
118
+ ```
119
+
120
+ ## Contact
121
+
122
+ Yuan He (`yuan.he(at)cs.ox.ac.uk`)