update
Browse files- .gitattributes +2 -0
- README.md +417 -0
- dataset/train.jsonl +3 -0
- dataset/valid.jsonl +3 -0
- get_stats.py +22 -0
- process.py +190 -0
- semeval2012_relational_similarity_v6.py +84 -0
- stats.csv +337 -0
- stats.md +338 -0
.gitattributes
CHANGED
@@ -52,3 +52,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
52 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
53 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
54 |
*.webp filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
52 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
53 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
54 |
*.webp filter=lfs diff=lfs merge=lfs -text
|
55 |
+
dataset/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
56 |
+
dataset/valid.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,417 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
license:
|
5 |
+
- other
|
6 |
+
multilinguality:
|
7 |
+
- monolingual
|
8 |
+
size_categories:
|
9 |
+
- 1K<n<10K
|
10 |
+
pretty_name: SemEval2012 task 2 Relational Similarity
|
11 |
+
---
|
12 |
+
# Dataset Card for "relbert/semeval2012_relational_similarity_v4"
|
13 |
+
## Dataset Description
|
14 |
+
- **Repository:** [RelBERT](https://github.com/asahi417/relbert)
|
15 |
+
- **Paper:** [https://aclanthology.org/S12-1047/](https://aclanthology.org/S12-1047/)
|
16 |
+
- **Dataset:** SemEval2012: Relational Similarity
|
17 |
+
|
18 |
+
### Dataset Summary
|
19 |
+
|
20 |
+
***IMPORTANT***: This is the same dataset as [relbert/semeval2012_relational_similarity](https://huggingface.co/datasets/relbert/semeval2012_relational_similarity),
|
21 |
+
but with a different dataset construction.
|
22 |
+
|
23 |
+
Relational similarity dataset from [SemEval2012 task 2](https://aclanthology.org/S12-1047/), compiled to fine-tune [RelBERT](https://github.com/asahi417/relbert) model.
|
24 |
+
The dataset contains a list of positive and negative word pair from 89 pre-defined relations.
|
25 |
+
The relation types are constructed on top of following 10 parent relation types.
|
26 |
+
```shell
|
27 |
+
{
|
28 |
+
1: "Class Inclusion", # Hypernym
|
29 |
+
2: "Part-Whole", # Meronym, Substance Meronym
|
30 |
+
3: "Similar", # Synonym, Co-hypornym
|
31 |
+
4: "Contrast", # Antonym
|
32 |
+
5: "Attribute", # Attribute, Event
|
33 |
+
6: "Non Attribute",
|
34 |
+
7: "Case Relation",
|
35 |
+
8: "Cause-Purpose",
|
36 |
+
9: "Space-Time",
|
37 |
+
10: "Representation"
|
38 |
+
}
|
39 |
+
```
|
40 |
+
Each of the parent relation is further grouped into child relation types where the definition can be found [here](https://drive.google.com/file/d/0BzcZKTSeYL8VenY0QkVpZVpxYnc/view?resourcekey=0-ZP-UARfJj39PcLroibHPHw).
|
41 |
+
|
42 |
+
|
43 |
+
## Dataset Structure
|
44 |
+
### Data Instances
|
45 |
+
An example of `train` looks as follows.
|
46 |
+
```
|
47 |
+
{
|
48 |
+
'relation_type': '8d',
|
49 |
+
'positives': [ [ "breathe", "live" ], [ "study", "learn" ], [ "speak", "communicate" ], ... ]
|
50 |
+
'negatives': [ [ "starving", "hungry" ], [ "clean", "bathe" ], [ "hungry", "starving" ], ... ]
|
51 |
+
}
|
52 |
+
```
|
53 |
+
|
54 |
+
### Data Splits
|
55 |
+
| name |train|validation|
|
56 |
+
|---------|----:|---------:|
|
57 |
+
|semeval2012_relational_similarity| 89 | 89|
|
58 |
+
|
59 |
+
|
60 |
+
### Number of Positive/Negative Word-pairs in each Split
|
61 |
+
|
62 |
+
| | positives | negatives |
|
63 |
+
|:--------------------------------------------|------------:|------------:|
|
64 |
+
| ('1', 'parent', 'train') | 88 | 544 |
|
65 |
+
| ('1', 'parent', 'validation') | 22 | 136 |
|
66 |
+
| ('10', 'parent', 'train') | 48 | 584 |
|
67 |
+
| ('10', 'parent', 'validation') | 12 | 146 |
|
68 |
+
| ('10a', 'child', 'train') | 8 | 1324 |
|
69 |
+
| ('10a', 'child', 'validation') | 2 | 331 |
|
70 |
+
| ('10a', 'child_prototypical', 'train') | 97 | 1917 |
|
71 |
+
| ('10a', 'child_prototypical', 'validation') | 26 | 521 |
|
72 |
+
| ('10b', 'child', 'train') | 8 | 1325 |
|
73 |
+
| ('10b', 'child', 'validation') | 2 | 331 |
|
74 |
+
| ('10b', 'child_prototypical', 'train') | 90 | 1558 |
|
75 |
+
| ('10b', 'child_prototypical', 'validation') | 27 | 469 |
|
76 |
+
| ('10c', 'child', 'train') | 8 | 1327 |
|
77 |
+
| ('10c', 'child', 'validation') | 2 | 331 |
|
78 |
+
| ('10c', 'child_prototypical', 'train') | 85 | 1640 |
|
79 |
+
| ('10c', 'child_prototypical', 'validation') | 20 | 390 |
|
80 |
+
| ('10d', 'child', 'train') | 8 | 1328 |
|
81 |
+
| ('10d', 'child', 'validation') | 2 | 331 |
|
82 |
+
| ('10d', 'child_prototypical', 'train') | 77 | 1390 |
|
83 |
+
| ('10d', 'child_prototypical', 'validation') | 22 | 376 |
|
84 |
+
| ('10e', 'child', 'train') | 8 | 1329 |
|
85 |
+
| ('10e', 'child', 'validation') | 2 | 332 |
|
86 |
+
| ('10e', 'child_prototypical', 'train') | 67 | 884 |
|
87 |
+
| ('10e', 'child_prototypical', 'validation') | 20 | 234 |
|
88 |
+
| ('10f', 'child', 'train') | 8 | 1328 |
|
89 |
+
| ('10f', 'child', 'validation') | 2 | 331 |
|
90 |
+
| ('10f', 'child_prototypical', 'train') | 80 | 1460 |
|
91 |
+
| ('10f', 'child_prototypical', 'validation') | 19 | 306 |
|
92 |
+
| ('1a', 'child', 'train') | 8 | 1324 |
|
93 |
+
| ('1a', 'child', 'validation') | 2 | 331 |
|
94 |
+
| ('1a', 'child_prototypical', 'train') | 106 | 1854 |
|
95 |
+
| ('1a', 'child_prototypical', 'validation') | 17 | 338 |
|
96 |
+
| ('1b', 'child', 'train') | 8 | 1324 |
|
97 |
+
| ('1b', 'child', 'validation') | 2 | 331 |
|
98 |
+
| ('1b', 'child_prototypical', 'train') | 95 | 1712 |
|
99 |
+
| ('1b', 'child_prototypical', 'validation') | 28 | 480 |
|
100 |
+
| ('1c', 'child', 'train') | 8 | 1327 |
|
101 |
+
| ('1c', 'child', 'validation') | 2 | 331 |
|
102 |
+
| ('1c', 'child_prototypical', 'train') | 80 | 1528 |
|
103 |
+
| ('1c', 'child_prototypical', 'validation') | 25 | 502 |
|
104 |
+
| ('1d', 'child', 'train') | 8 | 1323 |
|
105 |
+
| ('1d', 'child', 'validation') | 2 | 330 |
|
106 |
+
| ('1d', 'child_prototypical', 'train') | 112 | 2082 |
|
107 |
+
| ('1d', 'child_prototypical', 'validation') | 23 | 458 |
|
108 |
+
| ('1e', 'child', 'train') | 8 | 1329 |
|
109 |
+
| ('1e', 'child', 'validation') | 2 | 332 |
|
110 |
+
| ('1e', 'child_prototypical', 'train') | 63 | 775 |
|
111 |
+
| ('1e', 'child_prototypical', 'validation') | 24 | 256 |
|
112 |
+
| ('2', 'parent', 'train') | 80 | 552 |
|
113 |
+
| ('2', 'parent', 'validation') | 20 | 138 |
|
114 |
+
| ('2a', 'child', 'train') | 8 | 1324 |
|
115 |
+
| ('2a', 'child', 'validation') | 2 | 330 |
|
116 |
+
| ('2a', 'child_prototypical', 'train') | 93 | 1885 |
|
117 |
+
| ('2a', 'child_prototypical', 'validation') | 36 | 736 |
|
118 |
+
| ('2b', 'child', 'train') | 8 | 1327 |
|
119 |
+
| ('2b', 'child', 'validation') | 2 | 331 |
|
120 |
+
| ('2b', 'child_prototypical', 'train') | 86 | 1326 |
|
121 |
+
| ('2b', 'child_prototypical', 'validation') | 19 | 284 |
|
122 |
+
| ('2c', 'child', 'train') | 8 | 1325 |
|
123 |
+
| ('2c', 'child', 'validation') | 2 | 331 |
|
124 |
+
| ('2c', 'child_prototypical', 'train') | 96 | 1773 |
|
125 |
+
| ('2c', 'child_prototypical', 'validation') | 21 | 371 |
|
126 |
+
| ('2d', 'child', 'train') | 8 | 1328 |
|
127 |
+
| ('2d', 'child', 'validation') | 2 | 331 |
|
128 |
+
| ('2d', 'child_prototypical', 'train') | 79 | 1329 |
|
129 |
+
| ('2d', 'child_prototypical', 'validation') | 20 | 338 |
|
130 |
+
| ('2e', 'child', 'train') | 8 | 1327 |
|
131 |
+
| ('2e', 'child', 'validation') | 2 | 331 |
|
132 |
+
| ('2e', 'child_prototypical', 'train') | 82 | 1462 |
|
133 |
+
| ('2e', 'child_prototypical', 'validation') | 23 | 463 |
|
134 |
+
| ('2f', 'child', 'train') | 8 | 1327 |
|
135 |
+
| ('2f', 'child', 'validation') | 2 | 331 |
|
136 |
+
| ('2f', 'child_prototypical', 'train') | 88 | 1869 |
|
137 |
+
| ('2f', 'child_prototypical', 'validation') | 17 | 371 |
|
138 |
+
| ('2g', 'child', 'train') | 8 | 1323 |
|
139 |
+
| ('2g', 'child', 'validation') | 2 | 330 |
|
140 |
+
| ('2g', 'child_prototypical', 'train') | 108 | 1925 |
|
141 |
+
| ('2g', 'child_prototypical', 'validation') | 27 | 480 |
|
142 |
+
| ('2h', 'child', 'train') | 8 | 1327 |
|
143 |
+
| ('2h', 'child', 'validation') | 2 | 331 |
|
144 |
+
| ('2h', 'child_prototypical', 'train') | 84 | 1540 |
|
145 |
+
| ('2h', 'child_prototypical', 'validation') | 21 | 385 |
|
146 |
+
| ('2i', 'child', 'train') | 8 | 1328 |
|
147 |
+
| ('2i', 'child', 'validation') | 2 | 332 |
|
148 |
+
| ('2i', 'child_prototypical', 'train') | 72 | 1335 |
|
149 |
+
| ('2i', 'child_prototypical', 'validation') | 21 | 371 |
|
150 |
+
| ('2j', 'child', 'train') | 8 | 1328 |
|
151 |
+
| ('2j', 'child', 'validation') | 2 | 331 |
|
152 |
+
| ('2j', 'child_prototypical', 'train') | 80 | 1595 |
|
153 |
+
| ('2j', 'child_prototypical', 'validation') | 19 | 369 |
|
154 |
+
| ('3', 'parent', 'train') | 64 | 568 |
|
155 |
+
| ('3', 'parent', 'validation') | 16 | 142 |
|
156 |
+
| ('3a', 'child', 'train') | 8 | 1327 |
|
157 |
+
| ('3a', 'child', 'validation') | 2 | 331 |
|
158 |
+
| ('3a', 'child_prototypical', 'train') | 87 | 1597 |
|
159 |
+
| ('3a', 'child_prototypical', 'validation') | 18 | 328 |
|
160 |
+
| ('3b', 'child', 'train') | 8 | 1327 |
|
161 |
+
| ('3b', 'child', 'validation') | 2 | 331 |
|
162 |
+
| ('3b', 'child_prototypical', 'train') | 87 | 1833 |
|
163 |
+
| ('3b', 'child_prototypical', 'validation') | 18 | 407 |
|
164 |
+
| ('3c', 'child', 'train') | 8 | 1326 |
|
165 |
+
| ('3c', 'child', 'validation') | 2 | 331 |
|
166 |
+
| ('3c', 'child_prototypical', 'train') | 93 | 1664 |
|
167 |
+
| ('3c', 'child_prototypical', 'validation') | 18 | 315 |
|
168 |
+
| ('3d', 'child', 'train') | 8 | 1324 |
|
169 |
+
| ('3d', 'child', 'validation') | 2 | 331 |
|
170 |
+
| ('3d', 'child_prototypical', 'train') | 101 | 1943 |
|
171 |
+
| ('3d', 'child_prototypical', 'validation') | 22 | 372 |
|
172 |
+
| ('3e', 'child', 'train') | 8 | 1332 |
|
173 |
+
| ('3e', 'child', 'validation') | 2 | 332 |
|
174 |
+
| ('3e', 'child_prototypical', 'train') | 49 | 900 |
|
175 |
+
| ('3e', 'child_prototypical', 'validation') | 20 | 368 |
|
176 |
+
| ('3f', 'child', 'train') | 8 | 1327 |
|
177 |
+
| ('3f', 'child', 'validation') | 2 | 331 |
|
178 |
+
| ('3f', 'child_prototypical', 'train') | 90 | 1983 |
|
179 |
+
| ('3f', 'child_prototypical', 'validation') | 15 | 362 |
|
180 |
+
| ('3g', 'child', 'train') | 8 | 1331 |
|
181 |
+
| ('3g', 'child', 'validation') | 2 | 332 |
|
182 |
+
| ('3g', 'child_prototypical', 'train') | 61 | 1089 |
|
183 |
+
| ('3g', 'child_prototypical', 'validation') | 14 | 251 |
|
184 |
+
| ('3h', 'child', 'train') | 8 | 1328 |
|
185 |
+
| ('3h', 'child', 'validation') | 2 | 331 |
|
186 |
+
| ('3h', 'child_prototypical', 'train') | 71 | 1399 |
|
187 |
+
| ('3h', 'child_prototypical', 'validation') | 28 | 565 |
|
188 |
+
| ('4', 'parent', 'train') | 64 | 568 |
|
189 |
+
| ('4', 'parent', 'validation') | 16 | 142 |
|
190 |
+
| ('4a', 'child', 'train') | 8 | 1327 |
|
191 |
+
| ('4a', 'child', 'validation') | 2 | 331 |
|
192 |
+
| ('4a', 'child_prototypical', 'train') | 85 | 1766 |
|
193 |
+
| ('4a', 'child_prototypical', 'validation') | 20 | 474 |
|
194 |
+
| ('4b', 'child', 'train') | 8 | 1330 |
|
195 |
+
| ('4b', 'child', 'validation') | 2 | 332 |
|
196 |
+
| ('4b', 'child_prototypical', 'train') | 66 | 949 |
|
197 |
+
| ('4b', 'child_prototypical', 'validation') | 15 | 214 |
|
198 |
+
| ('4c', 'child', 'train') | 8 | 1326 |
|
199 |
+
| ('4c', 'child', 'validation') | 2 | 331 |
|
200 |
+
| ('4c', 'child_prototypical', 'train') | 86 | 1755 |
|
201 |
+
| ('4c', 'child_prototypical', 'validation') | 25 | 446 |
|
202 |
+
| ('4d', 'child', 'train') | 8 | 1332 |
|
203 |
+
| ('4d', 'child', 'validation') | 2 | 333 |
|
204 |
+
| ('4d', 'child_prototypical', 'train') | 46 | 531 |
|
205 |
+
| ('4d', 'child_prototypical', 'validation') | 17 | 218 |
|
206 |
+
| ('4e', 'child', 'train') | 8 | 1326 |
|
207 |
+
| ('4e', 'child', 'validation') | 2 | 331 |
|
208 |
+
| ('4e', 'child_prototypical', 'train') | 92 | 2021 |
|
209 |
+
| ('4e', 'child_prototypical', 'validation') | 19 | 402 |
|
210 |
+
| ('4f', 'child', 'train') | 8 | 1328 |
|
211 |
+
| ('4f', 'child', 'validation') | 2 | 332 |
|
212 |
+
| ('4f', 'child_prototypical', 'train') | 72 | 1464 |
|
213 |
+
| ('4f', 'child_prototypical', 'validation') | 21 | 428 |
|
214 |
+
| ('4g', 'child', 'train') | 8 | 1324 |
|
215 |
+
| ('4g', 'child', 'validation') | 2 | 330 |
|
216 |
+
| ('4g', 'child_prototypical', 'train') | 106 | 2057 |
|
217 |
+
| ('4g', 'child_prototypical', 'validation') | 23 | 435 |
|
218 |
+
| ('4h', 'child', 'train') | 8 | 1326 |
|
219 |
+
| ('4h', 'child', 'validation') | 2 | 331 |
|
220 |
+
| ('4h', 'child_prototypical', 'train') | 85 | 1787 |
|
221 |
+
| ('4h', 'child_prototypical', 'validation') | 26 | 525 |
|
222 |
+
| ('5', 'parent', 'train') | 72 | 560 |
|
223 |
+
| ('5', 'parent', 'validation') | 18 | 140 |
|
224 |
+
| ('5a', 'child', 'train') | 8 | 1324 |
|
225 |
+
| ('5a', 'child', 'validation') | 2 | 331 |
|
226 |
+
| ('5a', 'child_prototypical', 'train') | 101 | 1876 |
|
227 |
+
| ('5a', 'child_prototypical', 'validation') | 22 | 439 |
|
228 |
+
| ('5b', 'child', 'train') | 8 | 1329 |
|
229 |
+
| ('5b', 'child', 'validation') | 2 | 332 |
|
230 |
+
| ('5b', 'child_prototypical', 'train') | 70 | 1310 |
|
231 |
+
| ('5b', 'child_prototypical', 'validation') | 17 | 330 |
|
232 |
+
| ('5c', 'child', 'train') | 8 | 1327 |
|
233 |
+
| ('5c', 'child', 'validation') | 2 | 331 |
|
234 |
+
| ('5c', 'child_prototypical', 'train') | 85 | 1552 |
|
235 |
+
| ('5c', 'child_prototypical', 'validation') | 20 | 373 |
|
236 |
+
| ('5d', 'child', 'train') | 8 | 1324 |
|
237 |
+
| ('5d', 'child', 'validation') | 2 | 330 |
|
238 |
+
| ('5d', 'child_prototypical', 'train') | 102 | 1783 |
|
239 |
+
| ('5d', 'child_prototypical', 'validation') | 27 | 580 |
|
240 |
+
| ('5e', 'child', 'train') | 8 | 1329 |
|
241 |
+
| ('5e', 'child', 'validation') | 2 | 332 |
|
242 |
+
| ('5e', 'child_prototypical', 'train') | 68 | 1283 |
|
243 |
+
| ('5e', 'child_prototypical', 'validation') | 19 | 357 |
|
244 |
+
| ('5f', 'child', 'train') | 8 | 1327 |
|
245 |
+
| ('5f', 'child', 'validation') | 2 | 331 |
|
246 |
+
| ('5f', 'child_prototypical', 'train') | 77 | 1568 |
|
247 |
+
| ('5f', 'child_prototypical', 'validation') | 28 | 567 |
|
248 |
+
| ('5g', 'child', 'train') | 8 | 1328 |
|
249 |
+
| ('5g', 'child', 'validation') | 2 | 332 |
|
250 |
+
| ('5g', 'child_prototypical', 'train') | 79 | 1626 |
|
251 |
+
| ('5g', 'child_prototypical', 'validation') | 14 | 266 |
|
252 |
+
| ('5h', 'child', 'train') | 8 | 1324 |
|
253 |
+
| ('5h', 'child', 'validation') | 2 | 330 |
|
254 |
+
| ('5h', 'child_prototypical', 'train') | 109 | 2348 |
|
255 |
+
| ('5h', 'child_prototypical', 'validation') | 20 | 402 |
|
256 |
+
| ('5i', 'child', 'train') | 8 | 1324 |
|
257 |
+
| ('5i', 'child', 'validation') | 2 | 331 |
|
258 |
+
| ('5i', 'child_prototypical', 'train') | 96 | 2010 |
|
259 |
+
| ('5i', 'child_prototypical', 'validation') | 27 | 551 |
|
260 |
+
| ('6', 'parent', 'train') | 64 | 568 |
|
261 |
+
| ('6', 'parent', 'validation') | 16 | 142 |
|
262 |
+
| ('6a', 'child', 'train') | 8 | 1324 |
|
263 |
+
| ('6a', 'child', 'validation') | 2 | 330 |
|
264 |
+
| ('6a', 'child_prototypical', 'train') | 102 | 1962 |
|
265 |
+
| ('6a', 'child_prototypical', 'validation') | 27 | 530 |
|
266 |
+
| ('6b', 'child', 'train') | 8 | 1327 |
|
267 |
+
| ('6b', 'child', 'validation') | 2 | 331 |
|
268 |
+
| ('6b', 'child_prototypical', 'train') | 90 | 1840 |
|
269 |
+
| ('6b', 'child_prototypical', 'validation') | 15 | 295 |
|
270 |
+
| ('6c', 'child', 'train') | 8 | 1325 |
|
271 |
+
| ('6c', 'child', 'validation') | 2 | 331 |
|
272 |
+
| ('6c', 'child_prototypical', 'train') | 90 | 1968 |
|
273 |
+
| ('6c', 'child_prototypical', 'validation') | 27 | 527 |
|
274 |
+
| ('6d', 'child', 'train') | 8 | 1328 |
|
275 |
+
| ('6d', 'child', 'validation') | 2 | 331 |
|
276 |
+
| ('6d', 'child_prototypical', 'train') | 82 | 1903 |
|
277 |
+
| ('6d', 'child_prototypical', 'validation') | 17 | 358 |
|
278 |
+
| ('6e', 'child', 'train') | 8 | 1327 |
|
279 |
+
| ('6e', 'child', 'validation') | 2 | 331 |
|
280 |
+
| ('6e', 'child_prototypical', 'train') | 85 | 1737 |
|
281 |
+
| ('6e', 'child_prototypical', 'validation') | 20 | 398 |
|
282 |
+
| ('6f', 'child', 'train') | 8 | 1326 |
|
283 |
+
| ('6f', 'child', 'validation') | 2 | 331 |
|
284 |
+
| ('6f', 'child_prototypical', 'train') | 87 | 1652 |
|
285 |
+
| ('6f', 'child_prototypical', 'validation') | 24 | 438 |
|
286 |
+
| ('6g', 'child', 'train') | 8 | 1326 |
|
287 |
+
| ('6g', 'child', 'validation') | 2 | 331 |
|
288 |
+
| ('6g', 'child_prototypical', 'train') | 94 | 1740 |
|
289 |
+
| ('6g', 'child_prototypical', 'validation') | 17 | 239 |
|
290 |
+
| ('6h', 'child', 'train') | 8 | 1324 |
|
291 |
+
| ('6h', 'child', 'validation') | 2 | 330 |
|
292 |
+
| ('6h', 'child_prototypical', 'train') | 115 | 2337 |
|
293 |
+
| ('6h', 'child_prototypical', 'validation') | 14 | 284 |
|
294 |
+
| ('7', 'parent', 'train') | 64 | 568 |
|
295 |
+
| ('7', 'parent', 'validation') | 16 | 142 |
|
296 |
+
| ('7a', 'child', 'train') | 8 | 1324 |
|
297 |
+
| ('7a', 'child', 'validation') | 2 | 331 |
|
298 |
+
| ('7a', 'child_prototypical', 'train') | 99 | 2045 |
|
299 |
+
| ('7a', 'child_prototypical', 'validation') | 24 | 516 |
|
300 |
+
| ('7b', 'child', 'train') | 8 | 1330 |
|
301 |
+
| ('7b', 'child', 'validation') | 2 | 332 |
|
302 |
+
| ('7b', 'child_prototypical', 'train') | 69 | 905 |
|
303 |
+
| ('7b', 'child_prototypical', 'validation') | 12 | 177 |
|
304 |
+
| ('7c', 'child', 'train') | 8 | 1327 |
|
305 |
+
| ('7c', 'child', 'validation') | 2 | 331 |
|
306 |
+
| ('7c', 'child_prototypical', 'train') | 85 | 1402 |
|
307 |
+
| ('7c', 'child_prototypical', 'validation') | 20 | 313 |
|
308 |
+
| ('7d', 'child', 'train') | 8 | 1324 |
|
309 |
+
| ('7d', 'child', 'validation') | 2 | 331 |
|
310 |
+
| ('7d', 'child_prototypical', 'train') | 98 | 2064 |
|
311 |
+
| ('7d', 'child_prototypical', 'validation') | 25 | 497 |
|
312 |
+
| ('7e', 'child', 'train') | 8 | 1328 |
|
313 |
+
| ('7e', 'child', 'validation') | 2 | 331 |
|
314 |
+
| ('7e', 'child_prototypical', 'train') | 78 | 1270 |
|
315 |
+
| ('7e', 'child_prototypical', 'validation') | 21 | 298 |
|
316 |
+
| ('7f', 'child', 'train') | 8 | 1326 |
|
317 |
+
| ('7f', 'child', 'validation') | 2 | 331 |
|
318 |
+
| ('7f', 'child_prototypical', 'train') | 89 | 1377 |
|
319 |
+
| ('7f', 'child_prototypical', 'validation') | 22 | 380 |
|
320 |
+
| ('7g', 'child', 'train') | 8 | 1328 |
|
321 |
+
| ('7g', 'child', 'validation') | 2 | 332 |
|
322 |
+
| ('7g', 'child_prototypical', 'train') | 72 | 885 |
|
323 |
+
| ('7g', 'child_prototypical', 'validation') | 21 | 263 |
|
324 |
+
| ('7h', 'child', 'train') | 8 | 1324 |
|
325 |
+
| ('7h', 'child', 'validation') | 2 | 331 |
|
326 |
+
| ('7h', 'child_prototypical', 'train') | 94 | 1479 |
|
327 |
+
| ('7h', 'child_prototypical', 'validation') | 29 | 467 |
|
328 |
+
| ('8', 'parent', 'train') | 64 | 568 |
|
329 |
+
| ('8', 'parent', 'validation') | 16 | 142 |
|
330 |
+
| ('8a', 'child', 'train') | 8 | 1324 |
|
331 |
+
| ('8a', 'child', 'validation') | 2 | 331 |
|
332 |
+
| ('8a', 'child_prototypical', 'train') | 93 | 1640 |
|
333 |
+
| ('8a', 'child_prototypical', 'validation') | 30 | 552 |
|
334 |
+
| ('8b', 'child', 'train') | 8 | 1330 |
|
335 |
+
| ('8b', 'child', 'validation') | 2 | 332 |
|
336 |
+
| ('8b', 'child_prototypical', 'train') | 61 | 1126 |
|
337 |
+
| ('8b', 'child_prototypical', 'validation') | 20 | 361 |
|
338 |
+
| ('8c', 'child', 'train') | 8 | 1326 |
|
339 |
+
| ('8c', 'child', 'validation') | 2 | 331 |
|
340 |
+
| ('8c', 'child_prototypical', 'train') | 96 | 1547 |
|
341 |
+
| ('8c', 'child_prototypical', 'validation') | 15 | 210 |
|
342 |
+
| ('8d', 'child', 'train') | 8 | 1325 |
|
343 |
+
| ('8d', 'child', 'validation') | 2 | 331 |
|
344 |
+
| ('8d', 'child_prototypical', 'train') | 92 | 1472 |
|
345 |
+
| ('8d', 'child_prototypical', 'validation') | 25 | 438 |
|
346 |
+
| ('8e', 'child', 'train') | 8 | 1327 |
|
347 |
+
| ('8e', 'child', 'validation') | 2 | 331 |
|
348 |
+
| ('8e', 'child_prototypical', 'train') | 87 | 1340 |
|
349 |
+
| ('8e', 'child_prototypical', 'validation') | 18 | 270 |
|
350 |
+
| ('8f', 'child', 'train') | 8 | 1326 |
|
351 |
+
| ('8f', 'child', 'validation') | 2 | 331 |
|
352 |
+
| ('8f', 'child_prototypical', 'train') | 83 | 1416 |
|
353 |
+
| ('8f', 'child_prototypical', 'validation') | 28 | 452 |
|
354 |
+
| ('8g', 'child', 'train') | 8 | 1330 |
|
355 |
+
| ('8g', 'child', 'validation') | 2 | 332 |
|
356 |
+
| ('8g', 'child_prototypical', 'train') | 62 | 640 |
|
357 |
+
| ('8g', 'child_prototypical', 'validation') | 19 | 199 |
|
358 |
+
| ('8h', 'child', 'train') | 8 | 1324 |
|
359 |
+
| ('8h', 'child', 'validation') | 2 | 331 |
|
360 |
+
| ('8h', 'child_prototypical', 'train') | 100 | 1816 |
|
361 |
+
| ('8h', 'child_prototypical', 'validation') | 23 | 499 |
|
362 |
+
| ('9', 'parent', 'train') | 72 | 560 |
|
363 |
+
| ('9', 'parent', 'validation') | 18 | 140 |
|
364 |
+
| ('9a', 'child', 'train') | 8 | 1324 |
|
365 |
+
| ('9a', 'child', 'validation') | 2 | 331 |
|
366 |
+
| ('9a', 'child_prototypical', 'train') | 96 | 1520 |
|
367 |
+
| ('9a', 'child_prototypical', 'validation') | 27 | 426 |
|
368 |
+
| ('9b', 'child', 'train') | 8 | 1326 |
|
369 |
+
| ('9b', 'child', 'validation') | 2 | 331 |
|
370 |
+
| ('9b', 'child_prototypical', 'train') | 93 | 1783 |
|
371 |
+
| ('9b', 'child_prototypical', 'validation') | 18 | 307 |
|
372 |
+
| ('9c', 'child', 'train') | 8 | 1330 |
|
373 |
+
| ('9c', 'child', 'validation') | 2 | 332 |
|
374 |
+
| ('9c', 'child_prototypical', 'train') | 59 | 433 |
|
375 |
+
| ('9c', 'child_prototypical', 'validation') | 22 | 163 |
|
376 |
+
| ('9d', 'child', 'train') | 8 | 1328 |
|
377 |
+
| ('9d', 'child', 'validation') | 2 | 332 |
|
378 |
+
| ('9d', 'child_prototypical', 'train') | 78 | 1683 |
|
379 |
+
| ('9d', 'child_prototypical', 'validation') | 15 | 302 |
|
380 |
+
| ('9e', 'child', 'train') | 8 | 1329 |
|
381 |
+
| ('9e', 'child', 'validation') | 2 | 332 |
|
382 |
+
| ('9e', 'child_prototypical', 'train') | 66 | 1426 |
|
383 |
+
| ('9e', 'child_prototypical', 'validation') | 21 | 475 |
|
384 |
+
| ('9f', 'child', 'train') | 8 | 1328 |
|
385 |
+
| ('9f', 'child', 'validation') | 2 | 331 |
|
386 |
+
| ('9f', 'child_prototypical', 'train') | 79 | 1436 |
|
387 |
+
| ('9f', 'child_prototypical', 'validation') | 20 | 330 |
|
388 |
+
| ('9g', 'child', 'train') | 8 | 1324 |
|
389 |
+
| ('9g', 'child', 'validation') | 2 | 331 |
|
390 |
+
| ('9g', 'child_prototypical', 'train') | 100 | 1685 |
|
391 |
+
| ('9g', 'child_prototypical', 'validation') | 23 | 384 |
|
392 |
+
| ('9h', 'child', 'train') | 8 | 1325 |
|
393 |
+
| ('9h', 'child', 'validation') | 2 | 331 |
|
394 |
+
| ('9h', 'child_prototypical', 'train') | 95 | 1799 |
|
395 |
+
| ('9h', 'child_prototypical', 'validation') | 22 | 462 |
|
396 |
+
| ('9i', 'child', 'train') | 8 | 1328 |
|
397 |
+
| ('9i', 'child', 'validation') | 2 | 332 |
|
398 |
+
| ('9i', 'child_prototypical', 'train') | 79 | 1361 |
|
399 |
+
| ('9i', 'child_prototypical', 'validation') | 14 | 252 |
|
400 |
+
|
401 |
+
### Citation Information
|
402 |
+
```
|
403 |
+
@inproceedings{jurgens-etal-2012-semeval,
|
404 |
+
title = "{S}em{E}val-2012 Task 2: Measuring Degrees of Relational Similarity",
|
405 |
+
author = "Jurgens, David and
|
406 |
+
Mohammad, Saif and
|
407 |
+
Turney, Peter and
|
408 |
+
Holyoak, Keith",
|
409 |
+
booktitle = "*{SEM} 2012: The First Joint Conference on Lexical and Computational Semantics {--} Volume 1: Proceedings of the main conference and the shared task, and Volume 2: Proceedings of the Sixth International Workshop on Semantic Evaluation ({S}em{E}val 2012)",
|
410 |
+
month = "7-8 " # jun,
|
411 |
+
year = "2012",
|
412 |
+
address = "Montr{\'e}al, Canada",
|
413 |
+
publisher = "Association for Computational Linguistics",
|
414 |
+
url = "https://aclanthology.org/S12-1047",
|
415 |
+
pages = "356--364",
|
416 |
+
}
|
417 |
+
```
|
dataset/train.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:eea42042c17dae4f3db33880636d18496411f18eb398a0359871aff650af5161
|
3 |
+
size 6124394
|
dataset/valid.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c92d96fe873e050cb53fa2609c08d600c1893c79ac76a90b86fd74096ec41290
|
3 |
+
size 1525812
|
get_stats.py
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import pandas as pd
|
2 |
+
from datasets import load_dataset
|
3 |
+
|
4 |
+
data = load_dataset('relbert/semeval2012_relational_similarity_v6')
|
5 |
+
stats = []
|
6 |
+
for k in data.keys():
|
7 |
+
for i in data[k]:
|
8 |
+
stats.append(
|
9 |
+
{
|
10 |
+
'relation_type': i['relation_type'],
|
11 |
+
'split': k,
|
12 |
+
'positives': len(i['positives']),
|
13 |
+
'negatives': len(i['negatives']),
|
14 |
+
'level': i['level']
|
15 |
+
})
|
16 |
+
df = pd.DataFrame(stats)
|
17 |
+
g = df.groupby(['relation_type', 'level', 'split']).sum()
|
18 |
+
g.to_csv('stats.csv')
|
19 |
+
with open('stats.md', 'w') as f:
|
20 |
+
f.write(g.to_markdown())
|
21 |
+
|
22 |
+
|
process.py
ADDED
@@ -0,0 +1,190 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import json
|
2 |
+
import os
|
3 |
+
import tarfile
|
4 |
+
import zipfile
|
5 |
+
import gzip
|
6 |
+
import requests
|
7 |
+
|
8 |
+
from glob import glob
|
9 |
+
import gdown
|
10 |
+
from random import seed, shuffle
|
11 |
+
|
12 |
+
|
13 |
+
validation_ratio = 0.2
|
14 |
+
k = 10 # the 3rd level negative-distance ranking
|
15 |
+
m = 5 # the 3rd level negative-distance ranking
|
16 |
+
top_n = 10 # threshold of positive pairs in the 1st and 2nd relation
|
17 |
+
seed(42)
|
18 |
+
|
19 |
+
|
20 |
+
def wget(url, cache_dir: str = './cache', gdrive_filename: str = None):
|
21 |
+
""" wget and uncompress data_iterator """
|
22 |
+
os.makedirs(cache_dir, exist_ok=True)
|
23 |
+
if url.startswith('https://drive.google.com'):
|
24 |
+
assert gdrive_filename is not None, 'please provide fileaname for gdrive download'
|
25 |
+
gdown.download(url, f'{cache_dir}/{gdrive_filename}', quiet=False)
|
26 |
+
filename = gdrive_filename
|
27 |
+
else:
|
28 |
+
filename = os.path.basename(url)
|
29 |
+
with open(f'{cache_dir}/{filename}', "wb") as f:
|
30 |
+
r = requests.get(url)
|
31 |
+
f.write(r.content)
|
32 |
+
path = f'{cache_dir}/{filename}'
|
33 |
+
|
34 |
+
if path.endswith('.tar.gz') or path.endswith('.tgz') or path.endswith('.tar'):
|
35 |
+
if path.endswith('.tar'):
|
36 |
+
tar = tarfile.open(path)
|
37 |
+
else:
|
38 |
+
tar = tarfile.open(path, "r:gz")
|
39 |
+
tar.extractall(cache_dir)
|
40 |
+
tar.close()
|
41 |
+
os.remove(path)
|
42 |
+
elif path.endswith('.zip'):
|
43 |
+
with zipfile.ZipFile(path, 'r') as zip_ref:
|
44 |
+
zip_ref.extractall(cache_dir)
|
45 |
+
os.remove(path)
|
46 |
+
elif path.endswith('.gz'):
|
47 |
+
with gzip.open(path, 'rb') as f:
|
48 |
+
with open(path.replace('.gz', ''), 'wb') as f_write:
|
49 |
+
f_write.write(f.read())
|
50 |
+
os.remove(path)
|
51 |
+
|
52 |
+
|
53 |
+
def get_training_data():
|
54 |
+
""" Get RelBERT training data
|
55 |
+
|
56 |
+
Returns
|
57 |
+
-------
|
58 |
+
pairs: dictionary of list (positive pairs, negative pairs)
|
59 |
+
{'1b': [[0.6, ('office', 'desk'), ..], [[-0.1, ('aaa', 'bbb'), ...]]
|
60 |
+
"""
|
61 |
+
cache_dir = 'cache'
|
62 |
+
os.makedirs(cache_dir, exist_ok=True)
|
63 |
+
remove_relation = None
|
64 |
+
path_answer = f'{cache_dir}/Phase2Answers'
|
65 |
+
path_scale = f'{cache_dir}/Phase2AnswersScaled'
|
66 |
+
url = 'https://drive.google.com/u/0/uc?id=0BzcZKTSeYL8VYWtHVmxUR3FyUmc&export=download'
|
67 |
+
filename = 'SemEval-2012-Platinum-Ratings.tar.gz'
|
68 |
+
if not (os.path.exists(path_scale) and os.path.exists(path_answer)):
|
69 |
+
wget(url, gdrive_filename=filename, cache_dir=cache_dir)
|
70 |
+
files_answer = [os.path.basename(i) for i in glob(f'{path_answer}/*.txt')]
|
71 |
+
files_scale = [os.path.basename(i) for i in glob(f'{path_scale}/*.txt')]
|
72 |
+
assert files_answer == files_scale, f'files are not matched: {files_scale} vs {files_answer}'
|
73 |
+
positives = {}
|
74 |
+
negatives = {}
|
75 |
+
positives_limit = {}
|
76 |
+
all_relation_type = {}
|
77 |
+
# score_range = [90.0, 88.7] # the absolute value of max/min prototypicality rating
|
78 |
+
for i in files_scale:
|
79 |
+
relation_id = i.split('-')[-1].replace('.txt', '')
|
80 |
+
if remove_relation and int(relation_id[:-1]) in remove_relation:
|
81 |
+
continue
|
82 |
+
with open(f'{path_answer}/{i}', 'r') as f:
|
83 |
+
lines_answer = [_l.replace('"', '').split('\t') for _l in f.read().split('\n')
|
84 |
+
if not _l.startswith('#') and len(_l)]
|
85 |
+
relation_type = list(set(list(zip(*lines_answer))[-1]))
|
86 |
+
assert len(relation_type) == 1, relation_type
|
87 |
+
relation_type = relation_type[0]
|
88 |
+
with open(f'{path_scale}/{i}', 'r') as f:
|
89 |
+
# list of tuple [score, ("a", "b")]
|
90 |
+
scales = [[float(_l[:5]), _l[6:].replace('"', '')] for _l in f.read().split('\n')
|
91 |
+
if not _l.startswith('#') and len(_l)]
|
92 |
+
scales = sorted(scales, key=lambda _x: _x[0])
|
93 |
+
# positive pairs are in the reverse order of prototypicality score
|
94 |
+
positive_pairs = [[s, tuple(p.split(':'))] for s, p in filter(lambda _x: _x[0] > 0, scales)]
|
95 |
+
positive_pairs = sorted(positive_pairs, key=lambda x: x[0], reverse=True)
|
96 |
+
positives[relation_id] = list(list(zip(*positive_pairs))[1])
|
97 |
+
positives_limit[relation_id] = list(list(zip(*positive_pairs[:min(top_n, len(positive_pairs))]))[1])
|
98 |
+
negatives[relation_id] = [tuple(p.split(':')) for s, p in filter(lambda _x: _x[0] < 0, scales)]
|
99 |
+
all_relation_type[relation_id] = relation_type
|
100 |
+
parent = list(set([i[:-1] for i in all_relation_type.keys()]))
|
101 |
+
|
102 |
+
# 1st level relation contrast (among parent relations)
|
103 |
+
relation_pairs_1st = []
|
104 |
+
relation_pairs_1st_validation = []
|
105 |
+
for p in parent:
|
106 |
+
child_positive = list(filter(lambda x: x.startswith(p), list(all_relation_type.keys())))
|
107 |
+
child_negative = list(filter(lambda x: not x.startswith(p), list(all_relation_type.keys())))
|
108 |
+
positive_pairs = []
|
109 |
+
negative_pairs = []
|
110 |
+
for c in child_positive:
|
111 |
+
positive_pairs += positives_limit[c]
|
112 |
+
for c in child_negative:
|
113 |
+
negative_pairs += positives_limit[c]
|
114 |
+
|
115 |
+
shuffle(positive_pairs)
|
116 |
+
positive_pairs_val = positive_pairs[:int(len(positive_pairs) * validation_ratio)]
|
117 |
+
positive_pairs_tra = positive_pairs[int(len(positive_pairs) * validation_ratio):]
|
118 |
+
|
119 |
+
shuffle(negative_pairs)
|
120 |
+
negative_pairs_val = negative_pairs[:int(len(negative_pairs) * validation_ratio)]
|
121 |
+
negative_pairs_tra = negative_pairs[int(len(negative_pairs) * validation_ratio):]
|
122 |
+
|
123 |
+
relation_pairs_1st += [{
|
124 |
+
"positives": positive_pairs_tra, "negatives": negative_pairs_tra, "relation_type": p, "level": "parent"
|
125 |
+
}]
|
126 |
+
relation_pairs_1st_validation += [{
|
127 |
+
"positives": positive_pairs_val, "negatives": negative_pairs_val, "relation_type": p, "level": "parent"
|
128 |
+
}]
|
129 |
+
|
130 |
+
# 2nd level relation contrast (among child relations) & 3rd level relation contrast (within child relations)
|
131 |
+
relation_pairs_2nd = []
|
132 |
+
relation_pairs_2nd_validation = []
|
133 |
+
for p in all_relation_type.keys():
|
134 |
+
positive_pairs = positives_limit[p]
|
135 |
+
negative_pairs = []
|
136 |
+
for n in all_relation_type.keys():
|
137 |
+
if p == n:
|
138 |
+
continue
|
139 |
+
negative_pairs += positives[n]
|
140 |
+
|
141 |
+
shuffle(positive_pairs)
|
142 |
+
positive_pairs_val = positive_pairs[:int(len(positive_pairs) * validation_ratio)]
|
143 |
+
positive_pairs_tra = positive_pairs[int(len(positive_pairs) * validation_ratio):]
|
144 |
+
|
145 |
+
shuffle(negative_pairs)
|
146 |
+
negative_pairs_val = negative_pairs[:int(len(negative_pairs) * validation_ratio)]
|
147 |
+
negative_pairs_tra = negative_pairs[int(len(negative_pairs) * validation_ratio):]
|
148 |
+
|
149 |
+
relation_pairs_2nd += [{
|
150 |
+
"positives": positive_pairs_tra, "negatives": negative_pairs_tra, "relation_type": p, "level": "child"
|
151 |
+
}]
|
152 |
+
relation_pairs_2nd_validation += [{
|
153 |
+
"positives": positive_pairs_val, "negatives": negative_pairs_val, "relation_type": p, "level": "child"
|
154 |
+
}]
|
155 |
+
|
156 |
+
relation_pairs_3rd = []
|
157 |
+
for p in all_relation_type.keys():
|
158 |
+
positive_pairs = positives[p]
|
159 |
+
negative_pairs = positives[p] + negatives[p]
|
160 |
+
for n, anchor in enumerate(positive_pairs):
|
161 |
+
if n > m:
|
162 |
+
continue
|
163 |
+
for _n, posi in enumerate(positive_pairs):
|
164 |
+
if n < _n and len(negative_pairs) > _n + k:
|
165 |
+
relation_pairs_3rd += [{
|
166 |
+
# "positives": [(anchor, posi)],
|
167 |
+
# "negatives": [(anchor, neg) for neg in negative_pairs[_n+k:]],
|
168 |
+
"positives": [anchor, posi],
|
169 |
+
"negatives": negative_pairs[_n + k:],
|
170 |
+
"relation_type": p,
|
171 |
+
"level": "child_prototypical"
|
172 |
+
}]
|
173 |
+
print(len(relation_pairs_3rd))
|
174 |
+
shuffle(relation_pairs_3rd)
|
175 |
+
relation_pairs_3rd_validation = relation_pairs_3rd[:int(len(relation_pairs_3rd)*validation_ratio)]
|
176 |
+
relation_pairs_3rd = relation_pairs_3rd[int(len(relation_pairs_3rd) * validation_ratio):]
|
177 |
+
|
178 |
+
train = relation_pairs_1st + relation_pairs_2nd + relation_pairs_3rd
|
179 |
+
validation = relation_pairs_1st_validation + relation_pairs_2nd_validation + relation_pairs_3rd_validation
|
180 |
+
return train, validation
|
181 |
+
|
182 |
+
|
183 |
+
if __name__ == '__main__':
|
184 |
+
data_train, data_validation = get_training_data()
|
185 |
+
print(f"- training data : {len(data_train)}")
|
186 |
+
print(f"- validation data : {len(data_validation)}")
|
187 |
+
with open('dataset/train.jsonl', 'w') as f_writer:
|
188 |
+
f_writer.write('\n'.join([json.dumps(i) for i in data_train]))
|
189 |
+
with open('dataset/valid.jsonl', 'w') as f_writer:
|
190 |
+
f_writer.write('\n'.join([json.dumps(i) for i in data_validation]))
|
semeval2012_relational_similarity_v6.py
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import json
|
2 |
+
import datasets
|
3 |
+
|
4 |
+
|
5 |
+
logger = datasets.logging.get_logger(__name__)
|
6 |
+
_DESCRIPTION = """[SemEVAL 2012 task 2: Relational Similarity](https://aclanthology.org/S12-1047/)"""
|
7 |
+
_NAME = "semeval2012_relational_similarity_v6"
|
8 |
+
_VERSION = "1.1.1"
|
9 |
+
_CITATION = """
|
10 |
+
@inproceedings{jurgens-etal-2012-semeval,
|
11 |
+
title = "{S}em{E}val-2012 Task 2: Measuring Degrees of Relational Similarity",
|
12 |
+
author = "Jurgens, David and
|
13 |
+
Mohammad, Saif and
|
14 |
+
Turney, Peter and
|
15 |
+
Holyoak, Keith",
|
16 |
+
booktitle = "*{SEM} 2012: The First Joint Conference on Lexical and Computational Semantics {--} Volume 1: Proceedings of the main conference and the shared task, and Volume 2: Proceedings of the Sixth International Workshop on Semantic Evaluation ({S}em{E}val 2012)",
|
17 |
+
month = "7-8 " # jun,
|
18 |
+
year = "2012",
|
19 |
+
address = "Montr{\'e}al, Canada",
|
20 |
+
publisher = "Association for Computational Linguistics",
|
21 |
+
url = "https://aclanthology.org/S12-1047",
|
22 |
+
pages = "356--364",
|
23 |
+
}
|
24 |
+
"""
|
25 |
+
|
26 |
+
_HOME_PAGE = "https://github.com/asahi417/relbert"
|
27 |
+
_URL = f'https://huggingface.co/datasets/relbert/{_NAME}/raw/main/dataset'
|
28 |
+
_URLS = {
|
29 |
+
str(datasets.Split.TRAIN): [f'{_URL}/train.jsonl'],
|
30 |
+
str(datasets.Split.VALIDATION): [f'{_URL}/valid.jsonl'],
|
31 |
+
}
|
32 |
+
|
33 |
+
|
34 |
+
class SemEVAL2012RelationalSimilarityV6Config(datasets.BuilderConfig):
|
35 |
+
"""BuilderConfig"""
|
36 |
+
|
37 |
+
def __init__(self, **kwargs):
|
38 |
+
"""BuilderConfig.
|
39 |
+
Args:
|
40 |
+
**kwargs: keyword arguments forwarded to super.
|
41 |
+
"""
|
42 |
+
super(SemEVAL2012RelationalSimilarityV6Config, self).__init__(**kwargs)
|
43 |
+
|
44 |
+
|
45 |
+
class SemEVAL2012RelationalSimilarityV6(datasets.GeneratorBasedBuilder):
|
46 |
+
"""Dataset."""
|
47 |
+
|
48 |
+
BUILDER_CONFIGS = [
|
49 |
+
SemEVAL2012RelationalSimilarityV6Config(
|
50 |
+
name=_NAME, version=datasets.Version(_VERSION), description=_DESCRIPTION
|
51 |
+
),
|
52 |
+
]
|
53 |
+
|
54 |
+
def _split_generators(self, dl_manager):
|
55 |
+
downloaded_file = dl_manager.download_and_extract(_URLS)
|
56 |
+
return [datasets.SplitGenerator(name=i, gen_kwargs={"filepaths": downloaded_file[str(i)]})
|
57 |
+
for i in [datasets.Split.TRAIN, datasets.Split.VALIDATION]]
|
58 |
+
|
59 |
+
def _generate_examples(self, filepaths):
|
60 |
+
_key = 0
|
61 |
+
for filepath in filepaths:
|
62 |
+
logger.info(f"generating examples from = {filepath}")
|
63 |
+
with open(filepath, encoding="utf-8") as f:
|
64 |
+
_list = [i for i in f.read().split('\n') if len(i) > 0]
|
65 |
+
for i in _list:
|
66 |
+
data = json.loads(i)
|
67 |
+
yield _key, data
|
68 |
+
_key += 1
|
69 |
+
|
70 |
+
def _info(self):
|
71 |
+
return datasets.DatasetInfo(
|
72 |
+
description=_DESCRIPTION,
|
73 |
+
features=datasets.Features(
|
74 |
+
{
|
75 |
+
"level": datasets.Value("string"),
|
76 |
+
"relation_type": datasets.Value("string"),
|
77 |
+
"positives": datasets.Sequence(datasets.Sequence(datasets.Value("string"))),
|
78 |
+
"negatives": datasets.Sequence(datasets.Sequence(datasets.Value("string"))),
|
79 |
+
}
|
80 |
+
),
|
81 |
+
supervised_keys=None,
|
82 |
+
homepage=_HOME_PAGE,
|
83 |
+
citation=_CITATION,
|
84 |
+
)
|
stats.csv
ADDED
@@ -0,0 +1,337 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
relation_type,level,split,positives,negatives
|
2 |
+
1,parent,train,88,544
|
3 |
+
1,parent,validation,22,136
|
4 |
+
10,parent,train,48,584
|
5 |
+
10,parent,validation,12,146
|
6 |
+
10a,child,train,8,1324
|
7 |
+
10a,child,validation,2,331
|
8 |
+
10a,child_prototypical,train,97,1917
|
9 |
+
10a,child_prototypical,validation,26,521
|
10 |
+
10b,child,train,8,1325
|
11 |
+
10b,child,validation,2,331
|
12 |
+
10b,child_prototypical,train,90,1558
|
13 |
+
10b,child_prototypical,validation,27,469
|
14 |
+
10c,child,train,8,1327
|
15 |
+
10c,child,validation,2,331
|
16 |
+
10c,child_prototypical,train,85,1640
|
17 |
+
10c,child_prototypical,validation,20,390
|
18 |
+
10d,child,train,8,1328
|
19 |
+
10d,child,validation,2,331
|
20 |
+
10d,child_prototypical,train,77,1390
|
21 |
+
10d,child_prototypical,validation,22,376
|
22 |
+
10e,child,train,8,1329
|
23 |
+
10e,child,validation,2,332
|
24 |
+
10e,child_prototypical,train,67,884
|
25 |
+
10e,child_prototypical,validation,20,234
|
26 |
+
10f,child,train,8,1328
|
27 |
+
10f,child,validation,2,331
|
28 |
+
10f,child_prototypical,train,80,1460
|
29 |
+
10f,child_prototypical,validation,19,306
|
30 |
+
1a,child,train,8,1324
|
31 |
+
1a,child,validation,2,331
|
32 |
+
1a,child_prototypical,train,106,1854
|
33 |
+
1a,child_prototypical,validation,17,338
|
34 |
+
1b,child,train,8,1324
|
35 |
+
1b,child,validation,2,331
|
36 |
+
1b,child_prototypical,train,95,1712
|
37 |
+
1b,child_prototypical,validation,28,480
|
38 |
+
1c,child,train,8,1327
|
39 |
+
1c,child,validation,2,331
|
40 |
+
1c,child_prototypical,train,80,1528
|
41 |
+
1c,child_prototypical,validation,25,502
|
42 |
+
1d,child,train,8,1323
|
43 |
+
1d,child,validation,2,330
|
44 |
+
1d,child_prototypical,train,112,2082
|
45 |
+
1d,child_prototypical,validation,23,458
|
46 |
+
1e,child,train,8,1329
|
47 |
+
1e,child,validation,2,332
|
48 |
+
1e,child_prototypical,train,63,775
|
49 |
+
1e,child_prototypical,validation,24,256
|
50 |
+
2,parent,train,80,552
|
51 |
+
2,parent,validation,20,138
|
52 |
+
2a,child,train,8,1324
|
53 |
+
2a,child,validation,2,330
|
54 |
+
2a,child_prototypical,train,93,1885
|
55 |
+
2a,child_prototypical,validation,36,736
|
56 |
+
2b,child,train,8,1327
|
57 |
+
2b,child,validation,2,331
|
58 |
+
2b,child_prototypical,train,86,1326
|
59 |
+
2b,child_prototypical,validation,19,284
|
60 |
+
2c,child,train,8,1325
|
61 |
+
2c,child,validation,2,331
|
62 |
+
2c,child_prototypical,train,96,1773
|
63 |
+
2c,child_prototypical,validation,21,371
|
64 |
+
2d,child,train,8,1328
|
65 |
+
2d,child,validation,2,331
|
66 |
+
2d,child_prototypical,train,79,1329
|
67 |
+
2d,child_prototypical,validation,20,338
|
68 |
+
2e,child,train,8,1327
|
69 |
+
2e,child,validation,2,331
|
70 |
+
2e,child_prototypical,train,82,1462
|
71 |
+
2e,child_prototypical,validation,23,463
|
72 |
+
2f,child,train,8,1327
|
73 |
+
2f,child,validation,2,331
|
74 |
+
2f,child_prototypical,train,88,1869
|
75 |
+
2f,child_prototypical,validation,17,371
|
76 |
+
2g,child,train,8,1323
|
77 |
+
2g,child,validation,2,330
|
78 |
+
2g,child_prototypical,train,108,1925
|
79 |
+
2g,child_prototypical,validation,27,480
|
80 |
+
2h,child,train,8,1327
|
81 |
+
2h,child,validation,2,331
|
82 |
+
2h,child_prototypical,train,84,1540
|
83 |
+
2h,child_prototypical,validation,21,385
|
84 |
+
2i,child,train,8,1328
|
85 |
+
2i,child,validation,2,332
|
86 |
+
2i,child_prototypical,train,72,1335
|
87 |
+
2i,child_prototypical,validation,21,371
|
88 |
+
2j,child,train,8,1328
|
89 |
+
2j,child,validation,2,331
|
90 |
+
2j,child_prototypical,train,80,1595
|
91 |
+
2j,child_prototypical,validation,19,369
|
92 |
+
3,parent,train,64,568
|
93 |
+
3,parent,validation,16,142
|
94 |
+
3a,child,train,8,1327
|
95 |
+
3a,child,validation,2,331
|
96 |
+
3a,child_prototypical,train,87,1597
|
97 |
+
3a,child_prototypical,validation,18,328
|
98 |
+
3b,child,train,8,1327
|
99 |
+
3b,child,validation,2,331
|
100 |
+
3b,child_prototypical,train,87,1833
|
101 |
+
3b,child_prototypical,validation,18,407
|
102 |
+
3c,child,train,8,1326
|
103 |
+
3c,child,validation,2,331
|
104 |
+
3c,child_prototypical,train,93,1664
|
105 |
+
3c,child_prototypical,validation,18,315
|
106 |
+
3d,child,train,8,1324
|
107 |
+
3d,child,validation,2,331
|
108 |
+
3d,child_prototypical,train,101,1943
|
109 |
+
3d,child_prototypical,validation,22,372
|
110 |
+
3e,child,train,8,1332
|
111 |
+
3e,child,validation,2,332
|
112 |
+
3e,child_prototypical,train,49,900
|
113 |
+
3e,child_prototypical,validation,20,368
|
114 |
+
3f,child,train,8,1327
|
115 |
+
3f,child,validation,2,331
|
116 |
+
3f,child_prototypical,train,90,1983
|
117 |
+
3f,child_prototypical,validation,15,362
|
118 |
+
3g,child,train,8,1331
|
119 |
+
3g,child,validation,2,332
|
120 |
+
3g,child_prototypical,train,61,1089
|
121 |
+
3g,child_prototypical,validation,14,251
|
122 |
+
3h,child,train,8,1328
|
123 |
+
3h,child,validation,2,331
|
124 |
+
3h,child_prototypical,train,71,1399
|
125 |
+
3h,child_prototypical,validation,28,565
|
126 |
+
4,parent,train,64,568
|
127 |
+
4,parent,validation,16,142
|
128 |
+
4a,child,train,8,1327
|
129 |
+
4a,child,validation,2,331
|
130 |
+
4a,child_prototypical,train,85,1766
|
131 |
+
4a,child_prototypical,validation,20,474
|
132 |
+
4b,child,train,8,1330
|
133 |
+
4b,child,validation,2,332
|
134 |
+
4b,child_prototypical,train,66,949
|
135 |
+
4b,child_prototypical,validation,15,214
|
136 |
+
4c,child,train,8,1326
|
137 |
+
4c,child,validation,2,331
|
138 |
+
4c,child_prototypical,train,86,1755
|
139 |
+
4c,child_prototypical,validation,25,446
|
140 |
+
4d,child,train,8,1332
|
141 |
+
4d,child,validation,2,333
|
142 |
+
4d,child_prototypical,train,46,531
|
143 |
+
4d,child_prototypical,validation,17,218
|
144 |
+
4e,child,train,8,1326
|
145 |
+
4e,child,validation,2,331
|
146 |
+
4e,child_prototypical,train,92,2021
|
147 |
+
4e,child_prototypical,validation,19,402
|
148 |
+
4f,child,train,8,1328
|
149 |
+
4f,child,validation,2,332
|
150 |
+
4f,child_prototypical,train,72,1464
|
151 |
+
4f,child_prototypical,validation,21,428
|
152 |
+
4g,child,train,8,1324
|
153 |
+
4g,child,validation,2,330
|
154 |
+
4g,child_prototypical,train,106,2057
|
155 |
+
4g,child_prototypical,validation,23,435
|
156 |
+
4h,child,train,8,1326
|
157 |
+
4h,child,validation,2,331
|
158 |
+
4h,child_prototypical,train,85,1787
|
159 |
+
4h,child_prototypical,validation,26,525
|
160 |
+
5,parent,train,72,560
|
161 |
+
5,parent,validation,18,140
|
162 |
+
5a,child,train,8,1324
|
163 |
+
5a,child,validation,2,331
|
164 |
+
5a,child_prototypical,train,101,1876
|
165 |
+
5a,child_prototypical,validation,22,439
|
166 |
+
5b,child,train,8,1329
|
167 |
+
5b,child,validation,2,332
|
168 |
+
5b,child_prototypical,train,70,1310
|
169 |
+
5b,child_prototypical,validation,17,330
|
170 |
+
5c,child,train,8,1327
|
171 |
+
5c,child,validation,2,331
|
172 |
+
5c,child_prototypical,train,85,1552
|
173 |
+
5c,child_prototypical,validation,20,373
|
174 |
+
5d,child,train,8,1324
|
175 |
+
5d,child,validation,2,330
|
176 |
+
5d,child_prototypical,train,102,1783
|
177 |
+
5d,child_prototypical,validation,27,580
|
178 |
+
5e,child,train,8,1329
|
179 |
+
5e,child,validation,2,332
|
180 |
+
5e,child_prototypical,train,68,1283
|
181 |
+
5e,child_prototypical,validation,19,357
|
182 |
+
5f,child,train,8,1327
|
183 |
+
5f,child,validation,2,331
|
184 |
+
5f,child_prototypical,train,77,1568
|
185 |
+
5f,child_prototypical,validation,28,567
|
186 |
+
5g,child,train,8,1328
|
187 |
+
5g,child,validation,2,332
|
188 |
+
5g,child_prototypical,train,79,1626
|
189 |
+
5g,child_prototypical,validation,14,266
|
190 |
+
5h,child,train,8,1324
|
191 |
+
5h,child,validation,2,330
|
192 |
+
5h,child_prototypical,train,109,2348
|
193 |
+
5h,child_prototypical,validation,20,402
|
194 |
+
5i,child,train,8,1324
|
195 |
+
5i,child,validation,2,331
|
196 |
+
5i,child_prototypical,train,96,2010
|
197 |
+
5i,child_prototypical,validation,27,551
|
198 |
+
6,parent,train,64,568
|
199 |
+
6,parent,validation,16,142
|
200 |
+
6a,child,train,8,1324
|
201 |
+
6a,child,validation,2,330
|
202 |
+
6a,child_prototypical,train,102,1962
|
203 |
+
6a,child_prototypical,validation,27,530
|
204 |
+
6b,child,train,8,1327
|
205 |
+
6b,child,validation,2,331
|
206 |
+
6b,child_prototypical,train,90,1840
|
207 |
+
6b,child_prototypical,validation,15,295
|
208 |
+
6c,child,train,8,1325
|
209 |
+
6c,child,validation,2,331
|
210 |
+
6c,child_prototypical,train,90,1968
|
211 |
+
6c,child_prototypical,validation,27,527
|
212 |
+
6d,child,train,8,1328
|
213 |
+
6d,child,validation,2,331
|
214 |
+
6d,child_prototypical,train,82,1903
|
215 |
+
6d,child_prototypical,validation,17,358
|
216 |
+
6e,child,train,8,1327
|
217 |
+
6e,child,validation,2,331
|
218 |
+
6e,child_prototypical,train,85,1737
|
219 |
+
6e,child_prototypical,validation,20,398
|
220 |
+
6f,child,train,8,1326
|
221 |
+
6f,child,validation,2,331
|
222 |
+
6f,child_prototypical,train,87,1652
|
223 |
+
6f,child_prototypical,validation,24,438
|
224 |
+
6g,child,train,8,1326
|
225 |
+
6g,child,validation,2,331
|
226 |
+
6g,child_prototypical,train,94,1740
|
227 |
+
6g,child_prototypical,validation,17,239
|
228 |
+
6h,child,train,8,1324
|
229 |
+
6h,child,validation,2,330
|
230 |
+
6h,child_prototypical,train,115,2337
|
231 |
+
6h,child_prototypical,validation,14,284
|
232 |
+
7,parent,train,64,568
|
233 |
+
7,parent,validation,16,142
|
234 |
+
7a,child,train,8,1324
|
235 |
+
7a,child,validation,2,331
|
236 |
+
7a,child_prototypical,train,99,2045
|
237 |
+
7a,child_prototypical,validation,24,516
|
238 |
+
7b,child,train,8,1330
|
239 |
+
7b,child,validation,2,332
|
240 |
+
7b,child_prototypical,train,69,905
|
241 |
+
7b,child_prototypical,validation,12,177
|
242 |
+
7c,child,train,8,1327
|
243 |
+
7c,child,validation,2,331
|
244 |
+
7c,child_prototypical,train,85,1402
|
245 |
+
7c,child_prototypical,validation,20,313
|
246 |
+
7d,child,train,8,1324
|
247 |
+
7d,child,validation,2,331
|
248 |
+
7d,child_prototypical,train,98,2064
|
249 |
+
7d,child_prototypical,validation,25,497
|
250 |
+
7e,child,train,8,1328
|
251 |
+
7e,child,validation,2,331
|
252 |
+
7e,child_prototypical,train,78,1270
|
253 |
+
7e,child_prototypical,validation,21,298
|
254 |
+
7f,child,train,8,1326
|
255 |
+
7f,child,validation,2,331
|
256 |
+
7f,child_prototypical,train,89,1377
|
257 |
+
7f,child_prototypical,validation,22,380
|
258 |
+
7g,child,train,8,1328
|
259 |
+
7g,child,validation,2,332
|
260 |
+
7g,child_prototypical,train,72,885
|
261 |
+
7g,child_prototypical,validation,21,263
|
262 |
+
7h,child,train,8,1324
|
263 |
+
7h,child,validation,2,331
|
264 |
+
7h,child_prototypical,train,94,1479
|
265 |
+
7h,child_prototypical,validation,29,467
|
266 |
+
8,parent,train,64,568
|
267 |
+
8,parent,validation,16,142
|
268 |
+
8a,child,train,8,1324
|
269 |
+
8a,child,validation,2,331
|
270 |
+
8a,child_prototypical,train,93,1640
|
271 |
+
8a,child_prototypical,validation,30,552
|
272 |
+
8b,child,train,8,1330
|
273 |
+
8b,child,validation,2,332
|
274 |
+
8b,child_prototypical,train,61,1126
|
275 |
+
8b,child_prototypical,validation,20,361
|
276 |
+
8c,child,train,8,1326
|
277 |
+
8c,child,validation,2,331
|
278 |
+
8c,child_prototypical,train,96,1547
|
279 |
+
8c,child_prototypical,validation,15,210
|
280 |
+
8d,child,train,8,1325
|
281 |
+
8d,child,validation,2,331
|
282 |
+
8d,child_prototypical,train,92,1472
|
283 |
+
8d,child_prototypical,validation,25,438
|
284 |
+
8e,child,train,8,1327
|
285 |
+
8e,child,validation,2,331
|
286 |
+
8e,child_prototypical,train,87,1340
|
287 |
+
8e,child_prototypical,validation,18,270
|
288 |
+
8f,child,train,8,1326
|
289 |
+
8f,child,validation,2,331
|
290 |
+
8f,child_prototypical,train,83,1416
|
291 |
+
8f,child_prototypical,validation,28,452
|
292 |
+
8g,child,train,8,1330
|
293 |
+
8g,child,validation,2,332
|
294 |
+
8g,child_prototypical,train,62,640
|
295 |
+
8g,child_prototypical,validation,19,199
|
296 |
+
8h,child,train,8,1324
|
297 |
+
8h,child,validation,2,331
|
298 |
+
8h,child_prototypical,train,100,1816
|
299 |
+
8h,child_prototypical,validation,23,499
|
300 |
+
9,parent,train,72,560
|
301 |
+
9,parent,validation,18,140
|
302 |
+
9a,child,train,8,1324
|
303 |
+
9a,child,validation,2,331
|
304 |
+
9a,child_prototypical,train,96,1520
|
305 |
+
9a,child_prototypical,validation,27,426
|
306 |
+
9b,child,train,8,1326
|
307 |
+
9b,child,validation,2,331
|
308 |
+
9b,child_prototypical,train,93,1783
|
309 |
+
9b,child_prototypical,validation,18,307
|
310 |
+
9c,child,train,8,1330
|
311 |
+
9c,child,validation,2,332
|
312 |
+
9c,child_prototypical,train,59,433
|
313 |
+
9c,child_prototypical,validation,22,163
|
314 |
+
9d,child,train,8,1328
|
315 |
+
9d,child,validation,2,332
|
316 |
+
9d,child_prototypical,train,78,1683
|
317 |
+
9d,child_prototypical,validation,15,302
|
318 |
+
9e,child,train,8,1329
|
319 |
+
9e,child,validation,2,332
|
320 |
+
9e,child_prototypical,train,66,1426
|
321 |
+
9e,child_prototypical,validation,21,475
|
322 |
+
9f,child,train,8,1328
|
323 |
+
9f,child,validation,2,331
|
324 |
+
9f,child_prototypical,train,79,1436
|
325 |
+
9f,child_prototypical,validation,20,330
|
326 |
+
9g,child,train,8,1324
|
327 |
+
9g,child,validation,2,331
|
328 |
+
9g,child_prototypical,train,100,1685
|
329 |
+
9g,child_prototypical,validation,23,384
|
330 |
+
9h,child,train,8,1325
|
331 |
+
9h,child,validation,2,331
|
332 |
+
9h,child_prototypical,train,95,1799
|
333 |
+
9h,child_prototypical,validation,22,462
|
334 |
+
9i,child,train,8,1328
|
335 |
+
9i,child,validation,2,332
|
336 |
+
9i,child_prototypical,train,79,1361
|
337 |
+
9i,child_prototypical,validation,14,252
|
stats.md
ADDED
@@ -0,0 +1,338 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
| | positives | negatives |
|
2 |
+
|:--------------------------------------------|------------:|------------:|
|
3 |
+
| ('1', 'parent', 'train') | 88 | 544 |
|
4 |
+
| ('1', 'parent', 'validation') | 22 | 136 |
|
5 |
+
| ('10', 'parent', 'train') | 48 | 584 |
|
6 |
+
| ('10', 'parent', 'validation') | 12 | 146 |
|
7 |
+
| ('10a', 'child', 'train') | 8 | 1324 |
|
8 |
+
| ('10a', 'child', 'validation') | 2 | 331 |
|
9 |
+
| ('10a', 'child_prototypical', 'train') | 97 | 1917 |
|
10 |
+
| ('10a', 'child_prototypical', 'validation') | 26 | 521 |
|
11 |
+
| ('10b', 'child', 'train') | 8 | 1325 |
|
12 |
+
| ('10b', 'child', 'validation') | 2 | 331 |
|
13 |
+
| ('10b', 'child_prototypical', 'train') | 90 | 1558 |
|
14 |
+
| ('10b', 'child_prototypical', 'validation') | 27 | 469 |
|
15 |
+
| ('10c', 'child', 'train') | 8 | 1327 |
|
16 |
+
| ('10c', 'child', 'validation') | 2 | 331 |
|
17 |
+
| ('10c', 'child_prototypical', 'train') | 85 | 1640 |
|
18 |
+
| ('10c', 'child_prototypical', 'validation') | 20 | 390 |
|
19 |
+
| ('10d', 'child', 'train') | 8 | 1328 |
|
20 |
+
| ('10d', 'child', 'validation') | 2 | 331 |
|
21 |
+
| ('10d', 'child_prototypical', 'train') | 77 | 1390 |
|
22 |
+
| ('10d', 'child_prototypical', 'validation') | 22 | 376 |
|
23 |
+
| ('10e', 'child', 'train') | 8 | 1329 |
|
24 |
+
| ('10e', 'child', 'validation') | 2 | 332 |
|
25 |
+
| ('10e', 'child_prototypical', 'train') | 67 | 884 |
|
26 |
+
| ('10e', 'child_prototypical', 'validation') | 20 | 234 |
|
27 |
+
| ('10f', 'child', 'train') | 8 | 1328 |
|
28 |
+
| ('10f', 'child', 'validation') | 2 | 331 |
|
29 |
+
| ('10f', 'child_prototypical', 'train') | 80 | 1460 |
|
30 |
+
| ('10f', 'child_prototypical', 'validation') | 19 | 306 |
|
31 |
+
| ('1a', 'child', 'train') | 8 | 1324 |
|
32 |
+
| ('1a', 'child', 'validation') | 2 | 331 |
|
33 |
+
| ('1a', 'child_prototypical', 'train') | 106 | 1854 |
|
34 |
+
| ('1a', 'child_prototypical', 'validation') | 17 | 338 |
|
35 |
+
| ('1b', 'child', 'train') | 8 | 1324 |
|
36 |
+
| ('1b', 'child', 'validation') | 2 | 331 |
|
37 |
+
| ('1b', 'child_prototypical', 'train') | 95 | 1712 |
|
38 |
+
| ('1b', 'child_prototypical', 'validation') | 28 | 480 |
|
39 |
+
| ('1c', 'child', 'train') | 8 | 1327 |
|
40 |
+
| ('1c', 'child', 'validation') | 2 | 331 |
|
41 |
+
| ('1c', 'child_prototypical', 'train') | 80 | 1528 |
|
42 |
+
| ('1c', 'child_prototypical', 'validation') | 25 | 502 |
|
43 |
+
| ('1d', 'child', 'train') | 8 | 1323 |
|
44 |
+
| ('1d', 'child', 'validation') | 2 | 330 |
|
45 |
+
| ('1d', 'child_prototypical', 'train') | 112 | 2082 |
|
46 |
+
| ('1d', 'child_prototypical', 'validation') | 23 | 458 |
|
47 |
+
| ('1e', 'child', 'train') | 8 | 1329 |
|
48 |
+
| ('1e', 'child', 'validation') | 2 | 332 |
|
49 |
+
| ('1e', 'child_prototypical', 'train') | 63 | 775 |
|
50 |
+
| ('1e', 'child_prototypical', 'validation') | 24 | 256 |
|
51 |
+
| ('2', 'parent', 'train') | 80 | 552 |
|
52 |
+
| ('2', 'parent', 'validation') | 20 | 138 |
|
53 |
+
| ('2a', 'child', 'train') | 8 | 1324 |
|
54 |
+
| ('2a', 'child', 'validation') | 2 | 330 |
|
55 |
+
| ('2a', 'child_prototypical', 'train') | 93 | 1885 |
|
56 |
+
| ('2a', 'child_prototypical', 'validation') | 36 | 736 |
|
57 |
+
| ('2b', 'child', 'train') | 8 | 1327 |
|
58 |
+
| ('2b', 'child', 'validation') | 2 | 331 |
|
59 |
+
| ('2b', 'child_prototypical', 'train') | 86 | 1326 |
|
60 |
+
| ('2b', 'child_prototypical', 'validation') | 19 | 284 |
|
61 |
+
| ('2c', 'child', 'train') | 8 | 1325 |
|
62 |
+
| ('2c', 'child', 'validation') | 2 | 331 |
|
63 |
+
| ('2c', 'child_prototypical', 'train') | 96 | 1773 |
|
64 |
+
| ('2c', 'child_prototypical', 'validation') | 21 | 371 |
|
65 |
+
| ('2d', 'child', 'train') | 8 | 1328 |
|
66 |
+
| ('2d', 'child', 'validation') | 2 | 331 |
|
67 |
+
| ('2d', 'child_prototypical', 'train') | 79 | 1329 |
|
68 |
+
| ('2d', 'child_prototypical', 'validation') | 20 | 338 |
|
69 |
+
| ('2e', 'child', 'train') | 8 | 1327 |
|
70 |
+
| ('2e', 'child', 'validation') | 2 | 331 |
|
71 |
+
| ('2e', 'child_prototypical', 'train') | 82 | 1462 |
|
72 |
+
| ('2e', 'child_prototypical', 'validation') | 23 | 463 |
|
73 |
+
| ('2f', 'child', 'train') | 8 | 1327 |
|
74 |
+
| ('2f', 'child', 'validation') | 2 | 331 |
|
75 |
+
| ('2f', 'child_prototypical', 'train') | 88 | 1869 |
|
76 |
+
| ('2f', 'child_prototypical', 'validation') | 17 | 371 |
|
77 |
+
| ('2g', 'child', 'train') | 8 | 1323 |
|
78 |
+
| ('2g', 'child', 'validation') | 2 | 330 |
|
79 |
+
| ('2g', 'child_prototypical', 'train') | 108 | 1925 |
|
80 |
+
| ('2g', 'child_prototypical', 'validation') | 27 | 480 |
|
81 |
+
| ('2h', 'child', 'train') | 8 | 1327 |
|
82 |
+
| ('2h', 'child', 'validation') | 2 | 331 |
|
83 |
+
| ('2h', 'child_prototypical', 'train') | 84 | 1540 |
|
84 |
+
| ('2h', 'child_prototypical', 'validation') | 21 | 385 |
|
85 |
+
| ('2i', 'child', 'train') | 8 | 1328 |
|
86 |
+
| ('2i', 'child', 'validation') | 2 | 332 |
|
87 |
+
| ('2i', 'child_prototypical', 'train') | 72 | 1335 |
|
88 |
+
| ('2i', 'child_prototypical', 'validation') | 21 | 371 |
|
89 |
+
| ('2j', 'child', 'train') | 8 | 1328 |
|
90 |
+
| ('2j', 'child', 'validation') | 2 | 331 |
|
91 |
+
| ('2j', 'child_prototypical', 'train') | 80 | 1595 |
|
92 |
+
| ('2j', 'child_prototypical', 'validation') | 19 | 369 |
|
93 |
+
| ('3', 'parent', 'train') | 64 | 568 |
|
94 |
+
| ('3', 'parent', 'validation') | 16 | 142 |
|
95 |
+
| ('3a', 'child', 'train') | 8 | 1327 |
|
96 |
+
| ('3a', 'child', 'validation') | 2 | 331 |
|
97 |
+
| ('3a', 'child_prototypical', 'train') | 87 | 1597 |
|
98 |
+
| ('3a', 'child_prototypical', 'validation') | 18 | 328 |
|
99 |
+
| ('3b', 'child', 'train') | 8 | 1327 |
|
100 |
+
| ('3b', 'child', 'validation') | 2 | 331 |
|
101 |
+
| ('3b', 'child_prototypical', 'train') | 87 | 1833 |
|
102 |
+
| ('3b', 'child_prototypical', 'validation') | 18 | 407 |
|
103 |
+
| ('3c', 'child', 'train') | 8 | 1326 |
|
104 |
+
| ('3c', 'child', 'validation') | 2 | 331 |
|
105 |
+
| ('3c', 'child_prototypical', 'train') | 93 | 1664 |
|
106 |
+
| ('3c', 'child_prototypical', 'validation') | 18 | 315 |
|
107 |
+
| ('3d', 'child', 'train') | 8 | 1324 |
|
108 |
+
| ('3d', 'child', 'validation') | 2 | 331 |
|
109 |
+
| ('3d', 'child_prototypical', 'train') | 101 | 1943 |
|
110 |
+
| ('3d', 'child_prototypical', 'validation') | 22 | 372 |
|
111 |
+
| ('3e', 'child', 'train') | 8 | 1332 |
|
112 |
+
| ('3e', 'child', 'validation') | 2 | 332 |
|
113 |
+
| ('3e', 'child_prototypical', 'train') | 49 | 900 |
|
114 |
+
| ('3e', 'child_prototypical', 'validation') | 20 | 368 |
|
115 |
+
| ('3f', 'child', 'train') | 8 | 1327 |
|
116 |
+
| ('3f', 'child', 'validation') | 2 | 331 |
|
117 |
+
| ('3f', 'child_prototypical', 'train') | 90 | 1983 |
|
118 |
+
| ('3f', 'child_prototypical', 'validation') | 15 | 362 |
|
119 |
+
| ('3g', 'child', 'train') | 8 | 1331 |
|
120 |
+
| ('3g', 'child', 'validation') | 2 | 332 |
|
121 |
+
| ('3g', 'child_prototypical', 'train') | 61 | 1089 |
|
122 |
+
| ('3g', 'child_prototypical', 'validation') | 14 | 251 |
|
123 |
+
| ('3h', 'child', 'train') | 8 | 1328 |
|
124 |
+
| ('3h', 'child', 'validation') | 2 | 331 |
|
125 |
+
| ('3h', 'child_prototypical', 'train') | 71 | 1399 |
|
126 |
+
| ('3h', 'child_prototypical', 'validation') | 28 | 565 |
|
127 |
+
| ('4', 'parent', 'train') | 64 | 568 |
|
128 |
+
| ('4', 'parent', 'validation') | 16 | 142 |
|
129 |
+
| ('4a', 'child', 'train') | 8 | 1327 |
|
130 |
+
| ('4a', 'child', 'validation') | 2 | 331 |
|
131 |
+
| ('4a', 'child_prototypical', 'train') | 85 | 1766 |
|
132 |
+
| ('4a', 'child_prototypical', 'validation') | 20 | 474 |
|
133 |
+
| ('4b', 'child', 'train') | 8 | 1330 |
|
134 |
+
| ('4b', 'child', 'validation') | 2 | 332 |
|
135 |
+
| ('4b', 'child_prototypical', 'train') | 66 | 949 |
|
136 |
+
| ('4b', 'child_prototypical', 'validation') | 15 | 214 |
|
137 |
+
| ('4c', 'child', 'train') | 8 | 1326 |
|
138 |
+
| ('4c', 'child', 'validation') | 2 | 331 |
|
139 |
+
| ('4c', 'child_prototypical', 'train') | 86 | 1755 |
|
140 |
+
| ('4c', 'child_prototypical', 'validation') | 25 | 446 |
|
141 |
+
| ('4d', 'child', 'train') | 8 | 1332 |
|
142 |
+
| ('4d', 'child', 'validation') | 2 | 333 |
|
143 |
+
| ('4d', 'child_prototypical', 'train') | 46 | 531 |
|
144 |
+
| ('4d', 'child_prototypical', 'validation') | 17 | 218 |
|
145 |
+
| ('4e', 'child', 'train') | 8 | 1326 |
|
146 |
+
| ('4e', 'child', 'validation') | 2 | 331 |
|
147 |
+
| ('4e', 'child_prototypical', 'train') | 92 | 2021 |
|
148 |
+
| ('4e', 'child_prototypical', 'validation') | 19 | 402 |
|
149 |
+
| ('4f', 'child', 'train') | 8 | 1328 |
|
150 |
+
| ('4f', 'child', 'validation') | 2 | 332 |
|
151 |
+
| ('4f', 'child_prototypical', 'train') | 72 | 1464 |
|
152 |
+
| ('4f', 'child_prototypical', 'validation') | 21 | 428 |
|
153 |
+
| ('4g', 'child', 'train') | 8 | 1324 |
|
154 |
+
| ('4g', 'child', 'validation') | 2 | 330 |
|
155 |
+
| ('4g', 'child_prototypical', 'train') | 106 | 2057 |
|
156 |
+
| ('4g', 'child_prototypical', 'validation') | 23 | 435 |
|
157 |
+
| ('4h', 'child', 'train') | 8 | 1326 |
|
158 |
+
| ('4h', 'child', 'validation') | 2 | 331 |
|
159 |
+
| ('4h', 'child_prototypical', 'train') | 85 | 1787 |
|
160 |
+
| ('4h', 'child_prototypical', 'validation') | 26 | 525 |
|
161 |
+
| ('5', 'parent', 'train') | 72 | 560 |
|
162 |
+
| ('5', 'parent', 'validation') | 18 | 140 |
|
163 |
+
| ('5a', 'child', 'train') | 8 | 1324 |
|
164 |
+
| ('5a', 'child', 'validation') | 2 | 331 |
|
165 |
+
| ('5a', 'child_prototypical', 'train') | 101 | 1876 |
|
166 |
+
| ('5a', 'child_prototypical', 'validation') | 22 | 439 |
|
167 |
+
| ('5b', 'child', 'train') | 8 | 1329 |
|
168 |
+
| ('5b', 'child', 'validation') | 2 | 332 |
|
169 |
+
| ('5b', 'child_prototypical', 'train') | 70 | 1310 |
|
170 |
+
| ('5b', 'child_prototypical', 'validation') | 17 | 330 |
|
171 |
+
| ('5c', 'child', 'train') | 8 | 1327 |
|
172 |
+
| ('5c', 'child', 'validation') | 2 | 331 |
|
173 |
+
| ('5c', 'child_prototypical', 'train') | 85 | 1552 |
|
174 |
+
| ('5c', 'child_prototypical', 'validation') | 20 | 373 |
|
175 |
+
| ('5d', 'child', 'train') | 8 | 1324 |
|
176 |
+
| ('5d', 'child', 'validation') | 2 | 330 |
|
177 |
+
| ('5d', 'child_prototypical', 'train') | 102 | 1783 |
|
178 |
+
| ('5d', 'child_prototypical', 'validation') | 27 | 580 |
|
179 |
+
| ('5e', 'child', 'train') | 8 | 1329 |
|
180 |
+
| ('5e', 'child', 'validation') | 2 | 332 |
|
181 |
+
| ('5e', 'child_prototypical', 'train') | 68 | 1283 |
|
182 |
+
| ('5e', 'child_prototypical', 'validation') | 19 | 357 |
|
183 |
+
| ('5f', 'child', 'train') | 8 | 1327 |
|
184 |
+
| ('5f', 'child', 'validation') | 2 | 331 |
|
185 |
+
| ('5f', 'child_prototypical', 'train') | 77 | 1568 |
|
186 |
+
| ('5f', 'child_prototypical', 'validation') | 28 | 567 |
|
187 |
+
| ('5g', 'child', 'train') | 8 | 1328 |
|
188 |
+
| ('5g', 'child', 'validation') | 2 | 332 |
|
189 |
+
| ('5g', 'child_prototypical', 'train') | 79 | 1626 |
|
190 |
+
| ('5g', 'child_prototypical', 'validation') | 14 | 266 |
|
191 |
+
| ('5h', 'child', 'train') | 8 | 1324 |
|
192 |
+
| ('5h', 'child', 'validation') | 2 | 330 |
|
193 |
+
| ('5h', 'child_prototypical', 'train') | 109 | 2348 |
|
194 |
+
| ('5h', 'child_prototypical', 'validation') | 20 | 402 |
|
195 |
+
| ('5i', 'child', 'train') | 8 | 1324 |
|
196 |
+
| ('5i', 'child', 'validation') | 2 | 331 |
|
197 |
+
| ('5i', 'child_prototypical', 'train') | 96 | 2010 |
|
198 |
+
| ('5i', 'child_prototypical', 'validation') | 27 | 551 |
|
199 |
+
| ('6', 'parent', 'train') | 64 | 568 |
|
200 |
+
| ('6', 'parent', 'validation') | 16 | 142 |
|
201 |
+
| ('6a', 'child', 'train') | 8 | 1324 |
|
202 |
+
| ('6a', 'child', 'validation') | 2 | 330 |
|
203 |
+
| ('6a', 'child_prototypical', 'train') | 102 | 1962 |
|
204 |
+
| ('6a', 'child_prototypical', 'validation') | 27 | 530 |
|
205 |
+
| ('6b', 'child', 'train') | 8 | 1327 |
|
206 |
+
| ('6b', 'child', 'validation') | 2 | 331 |
|
207 |
+
| ('6b', 'child_prototypical', 'train') | 90 | 1840 |
|
208 |
+
| ('6b', 'child_prototypical', 'validation') | 15 | 295 |
|
209 |
+
| ('6c', 'child', 'train') | 8 | 1325 |
|
210 |
+
| ('6c', 'child', 'validation') | 2 | 331 |
|
211 |
+
| ('6c', 'child_prototypical', 'train') | 90 | 1968 |
|
212 |
+
| ('6c', 'child_prototypical', 'validation') | 27 | 527 |
|
213 |
+
| ('6d', 'child', 'train') | 8 | 1328 |
|
214 |
+
| ('6d', 'child', 'validation') | 2 | 331 |
|
215 |
+
| ('6d', 'child_prototypical', 'train') | 82 | 1903 |
|
216 |
+
| ('6d', 'child_prototypical', 'validation') | 17 | 358 |
|
217 |
+
| ('6e', 'child', 'train') | 8 | 1327 |
|
218 |
+
| ('6e', 'child', 'validation') | 2 | 331 |
|
219 |
+
| ('6e', 'child_prototypical', 'train') | 85 | 1737 |
|
220 |
+
| ('6e', 'child_prototypical', 'validation') | 20 | 398 |
|
221 |
+
| ('6f', 'child', 'train') | 8 | 1326 |
|
222 |
+
| ('6f', 'child', 'validation') | 2 | 331 |
|
223 |
+
| ('6f', 'child_prototypical', 'train') | 87 | 1652 |
|
224 |
+
| ('6f', 'child_prototypical', 'validation') | 24 | 438 |
|
225 |
+
| ('6g', 'child', 'train') | 8 | 1326 |
|
226 |
+
| ('6g', 'child', 'validation') | 2 | 331 |
|
227 |
+
| ('6g', 'child_prototypical', 'train') | 94 | 1740 |
|
228 |
+
| ('6g', 'child_prototypical', 'validation') | 17 | 239 |
|
229 |
+
| ('6h', 'child', 'train') | 8 | 1324 |
|
230 |
+
| ('6h', 'child', 'validation') | 2 | 330 |
|
231 |
+
| ('6h', 'child_prototypical', 'train') | 115 | 2337 |
|
232 |
+
| ('6h', 'child_prototypical', 'validation') | 14 | 284 |
|
233 |
+
| ('7', 'parent', 'train') | 64 | 568 |
|
234 |
+
| ('7', 'parent', 'validation') | 16 | 142 |
|
235 |
+
| ('7a', 'child', 'train') | 8 | 1324 |
|
236 |
+
| ('7a', 'child', 'validation') | 2 | 331 |
|
237 |
+
| ('7a', 'child_prototypical', 'train') | 99 | 2045 |
|
238 |
+
| ('7a', 'child_prototypical', 'validation') | 24 | 516 |
|
239 |
+
| ('7b', 'child', 'train') | 8 | 1330 |
|
240 |
+
| ('7b', 'child', 'validation') | 2 | 332 |
|
241 |
+
| ('7b', 'child_prototypical', 'train') | 69 | 905 |
|
242 |
+
| ('7b', 'child_prototypical', 'validation') | 12 | 177 |
|
243 |
+
| ('7c', 'child', 'train') | 8 | 1327 |
|
244 |
+
| ('7c', 'child', 'validation') | 2 | 331 |
|
245 |
+
| ('7c', 'child_prototypical', 'train') | 85 | 1402 |
|
246 |
+
| ('7c', 'child_prototypical', 'validation') | 20 | 313 |
|
247 |
+
| ('7d', 'child', 'train') | 8 | 1324 |
|
248 |
+
| ('7d', 'child', 'validation') | 2 | 331 |
|
249 |
+
| ('7d', 'child_prototypical', 'train') | 98 | 2064 |
|
250 |
+
| ('7d', 'child_prototypical', 'validation') | 25 | 497 |
|
251 |
+
| ('7e', 'child', 'train') | 8 | 1328 |
|
252 |
+
| ('7e', 'child', 'validation') | 2 | 331 |
|
253 |
+
| ('7e', 'child_prototypical', 'train') | 78 | 1270 |
|
254 |
+
| ('7e', 'child_prototypical', 'validation') | 21 | 298 |
|
255 |
+
| ('7f', 'child', 'train') | 8 | 1326 |
|
256 |
+
| ('7f', 'child', 'validation') | 2 | 331 |
|
257 |
+
| ('7f', 'child_prototypical', 'train') | 89 | 1377 |
|
258 |
+
| ('7f', 'child_prototypical', 'validation') | 22 | 380 |
|
259 |
+
| ('7g', 'child', 'train') | 8 | 1328 |
|
260 |
+
| ('7g', 'child', 'validation') | 2 | 332 |
|
261 |
+
| ('7g', 'child_prototypical', 'train') | 72 | 885 |
|
262 |
+
| ('7g', 'child_prototypical', 'validation') | 21 | 263 |
|
263 |
+
| ('7h', 'child', 'train') | 8 | 1324 |
|
264 |
+
| ('7h', 'child', 'validation') | 2 | 331 |
|
265 |
+
| ('7h', 'child_prototypical', 'train') | 94 | 1479 |
|
266 |
+
| ('7h', 'child_prototypical', 'validation') | 29 | 467 |
|
267 |
+
| ('8', 'parent', 'train') | 64 | 568 |
|
268 |
+
| ('8', 'parent', 'validation') | 16 | 142 |
|
269 |
+
| ('8a', 'child', 'train') | 8 | 1324 |
|
270 |
+
| ('8a', 'child', 'validation') | 2 | 331 |
|
271 |
+
| ('8a', 'child_prototypical', 'train') | 93 | 1640 |
|
272 |
+
| ('8a', 'child_prototypical', 'validation') | 30 | 552 |
|
273 |
+
| ('8b', 'child', 'train') | 8 | 1330 |
|
274 |
+
| ('8b', 'child', 'validation') | 2 | 332 |
|
275 |
+
| ('8b', 'child_prototypical', 'train') | 61 | 1126 |
|
276 |
+
| ('8b', 'child_prototypical', 'validation') | 20 | 361 |
|
277 |
+
| ('8c', 'child', 'train') | 8 | 1326 |
|
278 |
+
| ('8c', 'child', 'validation') | 2 | 331 |
|
279 |
+
| ('8c', 'child_prototypical', 'train') | 96 | 1547 |
|
280 |
+
| ('8c', 'child_prototypical', 'validation') | 15 | 210 |
|
281 |
+
| ('8d', 'child', 'train') | 8 | 1325 |
|
282 |
+
| ('8d', 'child', 'validation') | 2 | 331 |
|
283 |
+
| ('8d', 'child_prototypical', 'train') | 92 | 1472 |
|
284 |
+
| ('8d', 'child_prototypical', 'validation') | 25 | 438 |
|
285 |
+
| ('8e', 'child', 'train') | 8 | 1327 |
|
286 |
+
| ('8e', 'child', 'validation') | 2 | 331 |
|
287 |
+
| ('8e', 'child_prototypical', 'train') | 87 | 1340 |
|
288 |
+
| ('8e', 'child_prototypical', 'validation') | 18 | 270 |
|
289 |
+
| ('8f', 'child', 'train') | 8 | 1326 |
|
290 |
+
| ('8f', 'child', 'validation') | 2 | 331 |
|
291 |
+
| ('8f', 'child_prototypical', 'train') | 83 | 1416 |
|
292 |
+
| ('8f', 'child_prototypical', 'validation') | 28 | 452 |
|
293 |
+
| ('8g', 'child', 'train') | 8 | 1330 |
|
294 |
+
| ('8g', 'child', 'validation') | 2 | 332 |
|
295 |
+
| ('8g', 'child_prototypical', 'train') | 62 | 640 |
|
296 |
+
| ('8g', 'child_prototypical', 'validation') | 19 | 199 |
|
297 |
+
| ('8h', 'child', 'train') | 8 | 1324 |
|
298 |
+
| ('8h', 'child', 'validation') | 2 | 331 |
|
299 |
+
| ('8h', 'child_prototypical', 'train') | 100 | 1816 |
|
300 |
+
| ('8h', 'child_prototypical', 'validation') | 23 | 499 |
|
301 |
+
| ('9', 'parent', 'train') | 72 | 560 |
|
302 |
+
| ('9', 'parent', 'validation') | 18 | 140 |
|
303 |
+
| ('9a', 'child', 'train') | 8 | 1324 |
|
304 |
+
| ('9a', 'child', 'validation') | 2 | 331 |
|
305 |
+
| ('9a', 'child_prototypical', 'train') | 96 | 1520 |
|
306 |
+
| ('9a', 'child_prototypical', 'validation') | 27 | 426 |
|
307 |
+
| ('9b', 'child', 'train') | 8 | 1326 |
|
308 |
+
| ('9b', 'child', 'validation') | 2 | 331 |
|
309 |
+
| ('9b', 'child_prototypical', 'train') | 93 | 1783 |
|
310 |
+
| ('9b', 'child_prototypical', 'validation') | 18 | 307 |
|
311 |
+
| ('9c', 'child', 'train') | 8 | 1330 |
|
312 |
+
| ('9c', 'child', 'validation') | 2 | 332 |
|
313 |
+
| ('9c', 'child_prototypical', 'train') | 59 | 433 |
|
314 |
+
| ('9c', 'child_prototypical', 'validation') | 22 | 163 |
|
315 |
+
| ('9d', 'child', 'train') | 8 | 1328 |
|
316 |
+
| ('9d', 'child', 'validation') | 2 | 332 |
|
317 |
+
| ('9d', 'child_prototypical', 'train') | 78 | 1683 |
|
318 |
+
| ('9d', 'child_prototypical', 'validation') | 15 | 302 |
|
319 |
+
| ('9e', 'child', 'train') | 8 | 1329 |
|
320 |
+
| ('9e', 'child', 'validation') | 2 | 332 |
|
321 |
+
| ('9e', 'child_prototypical', 'train') | 66 | 1426 |
|
322 |
+
| ('9e', 'child_prototypical', 'validation') | 21 | 475 |
|
323 |
+
| ('9f', 'child', 'train') | 8 | 1328 |
|
324 |
+
| ('9f', 'child', 'validation') | 2 | 331 |
|
325 |
+
| ('9f', 'child_prototypical', 'train') | 79 | 1436 |
|
326 |
+
| ('9f', 'child_prototypical', 'validation') | 20 | 330 |
|
327 |
+
| ('9g', 'child', 'train') | 8 | 1324 |
|
328 |
+
| ('9g', 'child', 'validation') | 2 | 331 |
|
329 |
+
| ('9g', 'child_prototypical', 'train') | 100 | 1685 |
|
330 |
+
| ('9g', 'child_prototypical', 'validation') | 23 | 384 |
|
331 |
+
| ('9h', 'child', 'train') | 8 | 1325 |
|
332 |
+
| ('9h', 'child', 'validation') | 2 | 331 |
|
333 |
+
| ('9h', 'child_prototypical', 'train') | 95 | 1799 |
|
334 |
+
| ('9h', 'child_prototypical', 'validation') | 22 | 462 |
|
335 |
+
| ('9i', 'child', 'train') | 8 | 1328 |
|
336 |
+
| ('9i', 'child', 'validation') | 2 | 332 |
|
337 |
+
| ('9i', 'child_prototypical', 'train') | 79 | 1361 |
|
338 |
+
| ('9i', 'child_prototypical', 'validation') | 14 | 252 |
|