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 +165 -0
- semeval2012_relational_similarity_v7.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_V7"
|
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') | 194 | 1917 |
|
71 |
+
| ('10a', 'child_prototypical', 'validation') | 52 | 521 |
|
72 |
+
| ('10b', 'child', 'train') | 8 | 1325 |
|
73 |
+
| ('10b', 'child', 'validation') | 2 | 331 |
|
74 |
+
| ('10b', 'child_prototypical', 'train') | 180 | 1558 |
|
75 |
+
| ('10b', 'child_prototypical', 'validation') | 54 | 469 |
|
76 |
+
| ('10c', 'child', 'train') | 8 | 1327 |
|
77 |
+
| ('10c', 'child', 'validation') | 2 | 331 |
|
78 |
+
| ('10c', 'child_prototypical', 'train') | 170 | 1640 |
|
79 |
+
| ('10c', 'child_prototypical', 'validation') | 40 | 390 |
|
80 |
+
| ('10d', 'child', 'train') | 8 | 1328 |
|
81 |
+
| ('10d', 'child', 'validation') | 2 | 331 |
|
82 |
+
| ('10d', 'child_prototypical', 'train') | 154 | 1390 |
|
83 |
+
| ('10d', 'child_prototypical', 'validation') | 44 | 376 |
|
84 |
+
| ('10e', 'child', 'train') | 8 | 1329 |
|
85 |
+
| ('10e', 'child', 'validation') | 2 | 332 |
|
86 |
+
| ('10e', 'child_prototypical', 'train') | 134 | 884 |
|
87 |
+
| ('10e', 'child_prototypical', 'validation') | 40 | 234 |
|
88 |
+
| ('10f', 'child', 'train') | 8 | 1328 |
|
89 |
+
| ('10f', 'child', 'validation') | 2 | 331 |
|
90 |
+
| ('10f', 'child_prototypical', 'train') | 160 | 1460 |
|
91 |
+
| ('10f', 'child_prototypical', 'validation') | 38 | 306 |
|
92 |
+
| ('1a', 'child', 'train') | 8 | 1324 |
|
93 |
+
| ('1a', 'child', 'validation') | 2 | 331 |
|
94 |
+
| ('1a', 'child_prototypical', 'train') | 212 | 1854 |
|
95 |
+
| ('1a', 'child_prototypical', 'validation') | 34 | 338 |
|
96 |
+
| ('1b', 'child', 'train') | 8 | 1324 |
|
97 |
+
| ('1b', 'child', 'validation') | 2 | 331 |
|
98 |
+
| ('1b', 'child_prototypical', 'train') | 190 | 1712 |
|
99 |
+
| ('1b', 'child_prototypical', 'validation') | 56 | 480 |
|
100 |
+
| ('1c', 'child', 'train') | 8 | 1327 |
|
101 |
+
| ('1c', 'child', 'validation') | 2 | 331 |
|
102 |
+
| ('1c', 'child_prototypical', 'train') | 160 | 1528 |
|
103 |
+
| ('1c', 'child_prototypical', 'validation') | 50 | 502 |
|
104 |
+
| ('1d', 'child', 'train') | 8 | 1323 |
|
105 |
+
| ('1d', 'child', 'validation') | 2 | 330 |
|
106 |
+
| ('1d', 'child_prototypical', 'train') | 224 | 2082 |
|
107 |
+
| ('1d', 'child_prototypical', 'validation') | 46 | 458 |
|
108 |
+
| ('1e', 'child', 'train') | 8 | 1329 |
|
109 |
+
| ('1e', 'child', 'validation') | 2 | 332 |
|
110 |
+
| ('1e', 'child_prototypical', 'train') | 126 | 775 |
|
111 |
+
| ('1e', 'child_prototypical', 'validation') | 48 | 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') | 186 | 1885 |
|
117 |
+
| ('2a', 'child_prototypical', 'validation') | 72 | 736 |
|
118 |
+
| ('2b', 'child', 'train') | 8 | 1327 |
|
119 |
+
| ('2b', 'child', 'validation') | 2 | 331 |
|
120 |
+
| ('2b', 'child_prototypical', 'train') | 172 | 1326 |
|
121 |
+
| ('2b', 'child_prototypical', 'validation') | 38 | 284 |
|
122 |
+
| ('2c', 'child', 'train') | 8 | 1325 |
|
123 |
+
| ('2c', 'child', 'validation') | 2 | 331 |
|
124 |
+
| ('2c', 'child_prototypical', 'train') | 192 | 1773 |
|
125 |
+
| ('2c', 'child_prototypical', 'validation') | 42 | 371 |
|
126 |
+
| ('2d', 'child', 'train') | 8 | 1328 |
|
127 |
+
| ('2d', 'child', 'validation') | 2 | 331 |
|
128 |
+
| ('2d', 'child_prototypical', 'train') | 158 | 1329 |
|
129 |
+
| ('2d', 'child_prototypical', 'validation') | 40 | 338 |
|
130 |
+
| ('2e', 'child', 'train') | 8 | 1327 |
|
131 |
+
| ('2e', 'child', 'validation') | 2 | 331 |
|
132 |
+
| ('2e', 'child_prototypical', 'train') | 164 | 1462 |
|
133 |
+
| ('2e', 'child_prototypical', 'validation') | 46 | 463 |
|
134 |
+
| ('2f', 'child', 'train') | 8 | 1327 |
|
135 |
+
| ('2f', 'child', 'validation') | 2 | 331 |
|
136 |
+
| ('2f', 'child_prototypical', 'train') | 176 | 1869 |
|
137 |
+
| ('2f', 'child_prototypical', 'validation') | 34 | 371 |
|
138 |
+
| ('2g', 'child', 'train') | 8 | 1323 |
|
139 |
+
| ('2g', 'child', 'validation') | 2 | 330 |
|
140 |
+
| ('2g', 'child_prototypical', 'train') | 216 | 1925 |
|
141 |
+
| ('2g', 'child_prototypical', 'validation') | 54 | 480 |
|
142 |
+
| ('2h', 'child', 'train') | 8 | 1327 |
|
143 |
+
| ('2h', 'child', 'validation') | 2 | 331 |
|
144 |
+
| ('2h', 'child_prototypical', 'train') | 168 | 1540 |
|
145 |
+
| ('2h', 'child_prototypical', 'validation') | 42 | 385 |
|
146 |
+
| ('2i', 'child', 'train') | 8 | 1328 |
|
147 |
+
| ('2i', 'child', 'validation') | 2 | 332 |
|
148 |
+
| ('2i', 'child_prototypical', 'train') | 144 | 1335 |
|
149 |
+
| ('2i', 'child_prototypical', 'validation') | 42 | 371 |
|
150 |
+
| ('2j', 'child', 'train') | 8 | 1328 |
|
151 |
+
| ('2j', 'child', 'validation') | 2 | 331 |
|
152 |
+
| ('2j', 'child_prototypical', 'train') | 160 | 1595 |
|
153 |
+
| ('2j', 'child_prototypical', 'validation') | 38 | 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') | 174 | 1597 |
|
159 |
+
| ('3a', 'child_prototypical', 'validation') | 36 | 328 |
|
160 |
+
| ('3b', 'child', 'train') | 8 | 1327 |
|
161 |
+
| ('3b', 'child', 'validation') | 2 | 331 |
|
162 |
+
| ('3b', 'child_prototypical', 'train') | 174 | 1833 |
|
163 |
+
| ('3b', 'child_prototypical', 'validation') | 36 | 407 |
|
164 |
+
| ('3c', 'child', 'train') | 8 | 1326 |
|
165 |
+
| ('3c', 'child', 'validation') | 2 | 331 |
|
166 |
+
| ('3c', 'child_prototypical', 'train') | 186 | 1664 |
|
167 |
+
| ('3c', 'child_prototypical', 'validation') | 36 | 315 |
|
168 |
+
| ('3d', 'child', 'train') | 8 | 1324 |
|
169 |
+
| ('3d', 'child', 'validation') | 2 | 331 |
|
170 |
+
| ('3d', 'child_prototypical', 'train') | 202 | 1943 |
|
171 |
+
| ('3d', 'child_prototypical', 'validation') | 44 | 372 |
|
172 |
+
| ('3e', 'child', 'train') | 8 | 1332 |
|
173 |
+
| ('3e', 'child', 'validation') | 2 | 332 |
|
174 |
+
| ('3e', 'child_prototypical', 'train') | 98 | 900 |
|
175 |
+
| ('3e', 'child_prototypical', 'validation') | 40 | 368 |
|
176 |
+
| ('3f', 'child', 'train') | 8 | 1327 |
|
177 |
+
| ('3f', 'child', 'validation') | 2 | 331 |
|
178 |
+
| ('3f', 'child_prototypical', 'train') | 180 | 1983 |
|
179 |
+
| ('3f', 'child_prototypical', 'validation') | 30 | 362 |
|
180 |
+
| ('3g', 'child', 'train') | 8 | 1331 |
|
181 |
+
| ('3g', 'child', 'validation') | 2 | 332 |
|
182 |
+
| ('3g', 'child_prototypical', 'train') | 122 | 1089 |
|
183 |
+
| ('3g', 'child_prototypical', 'validation') | 28 | 251 |
|
184 |
+
| ('3h', 'child', 'train') | 8 | 1328 |
|
185 |
+
| ('3h', 'child', 'validation') | 2 | 331 |
|
186 |
+
| ('3h', 'child_prototypical', 'train') | 142 | 1399 |
|
187 |
+
| ('3h', 'child_prototypical', 'validation') | 56 | 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') | 170 | 1766 |
|
193 |
+
| ('4a', 'child_prototypical', 'validation') | 40 | 474 |
|
194 |
+
| ('4b', 'child', 'train') | 8 | 1330 |
|
195 |
+
| ('4b', 'child', 'validation') | 2 | 332 |
|
196 |
+
| ('4b', 'child_prototypical', 'train') | 132 | 949 |
|
197 |
+
| ('4b', 'child_prototypical', 'validation') | 30 | 214 |
|
198 |
+
| ('4c', 'child', 'train') | 8 | 1326 |
|
199 |
+
| ('4c', 'child', 'validation') | 2 | 331 |
|
200 |
+
| ('4c', 'child_prototypical', 'train') | 172 | 1755 |
|
201 |
+
| ('4c', 'child_prototypical', 'validation') | 50 | 446 |
|
202 |
+
| ('4d', 'child', 'train') | 8 | 1332 |
|
203 |
+
| ('4d', 'child', 'validation') | 2 | 333 |
|
204 |
+
| ('4d', 'child_prototypical', 'train') | 92 | 531 |
|
205 |
+
| ('4d', 'child_prototypical', 'validation') | 34 | 218 |
|
206 |
+
| ('4e', 'child', 'train') | 8 | 1326 |
|
207 |
+
| ('4e', 'child', 'validation') | 2 | 331 |
|
208 |
+
| ('4e', 'child_prototypical', 'train') | 184 | 2021 |
|
209 |
+
| ('4e', 'child_prototypical', 'validation') | 38 | 402 |
|
210 |
+
| ('4f', 'child', 'train') | 8 | 1328 |
|
211 |
+
| ('4f', 'child', 'validation') | 2 | 332 |
|
212 |
+
| ('4f', 'child_prototypical', 'train') | 144 | 1464 |
|
213 |
+
| ('4f', 'child_prototypical', 'validation') | 42 | 428 |
|
214 |
+
| ('4g', 'child', 'train') | 8 | 1324 |
|
215 |
+
| ('4g', 'child', 'validation') | 2 | 330 |
|
216 |
+
| ('4g', 'child_prototypical', 'train') | 212 | 2057 |
|
217 |
+
| ('4g', 'child_prototypical', 'validation') | 46 | 435 |
|
218 |
+
| ('4h', 'child', 'train') | 8 | 1326 |
|
219 |
+
| ('4h', 'child', 'validation') | 2 | 331 |
|
220 |
+
| ('4h', 'child_prototypical', 'train') | 170 | 1787 |
|
221 |
+
| ('4h', 'child_prototypical', 'validation') | 52 | 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') | 202 | 1876 |
|
227 |
+
| ('5a', 'child_prototypical', 'validation') | 44 | 439 |
|
228 |
+
| ('5b', 'child', 'train') | 8 | 1329 |
|
229 |
+
| ('5b', 'child', 'validation') | 2 | 332 |
|
230 |
+
| ('5b', 'child_prototypical', 'train') | 140 | 1310 |
|
231 |
+
| ('5b', 'child_prototypical', 'validation') | 34 | 330 |
|
232 |
+
| ('5c', 'child', 'train') | 8 | 1327 |
|
233 |
+
| ('5c', 'child', 'validation') | 2 | 331 |
|
234 |
+
| ('5c', 'child_prototypical', 'train') | 170 | 1552 |
|
235 |
+
| ('5c', 'child_prototypical', 'validation') | 40 | 373 |
|
236 |
+
| ('5d', 'child', 'train') | 8 | 1324 |
|
237 |
+
| ('5d', 'child', 'validation') | 2 | 330 |
|
238 |
+
| ('5d', 'child_prototypical', 'train') | 204 | 1783 |
|
239 |
+
| ('5d', 'child_prototypical', 'validation') | 54 | 580 |
|
240 |
+
| ('5e', 'child', 'train') | 8 | 1329 |
|
241 |
+
| ('5e', 'child', 'validation') | 2 | 332 |
|
242 |
+
| ('5e', 'child_prototypical', 'train') | 136 | 1283 |
|
243 |
+
| ('5e', 'child_prototypical', 'validation') | 38 | 357 |
|
244 |
+
| ('5f', 'child', 'train') | 8 | 1327 |
|
245 |
+
| ('5f', 'child', 'validation') | 2 | 331 |
|
246 |
+
| ('5f', 'child_prototypical', 'train') | 154 | 1568 |
|
247 |
+
| ('5f', 'child_prototypical', 'validation') | 56 | 567 |
|
248 |
+
| ('5g', 'child', 'train') | 8 | 1328 |
|
249 |
+
| ('5g', 'child', 'validation') | 2 | 332 |
|
250 |
+
| ('5g', 'child_prototypical', 'train') | 158 | 1626 |
|
251 |
+
| ('5g', 'child_prototypical', 'validation') | 28 | 266 |
|
252 |
+
| ('5h', 'child', 'train') | 8 | 1324 |
|
253 |
+
| ('5h', 'child', 'validation') | 2 | 330 |
|
254 |
+
| ('5h', 'child_prototypical', 'train') | 218 | 2348 |
|
255 |
+
| ('5h', 'child_prototypical', 'validation') | 40 | 402 |
|
256 |
+
| ('5i', 'child', 'train') | 8 | 1324 |
|
257 |
+
| ('5i', 'child', 'validation') | 2 | 331 |
|
258 |
+
| ('5i', 'child_prototypical', 'train') | 192 | 2010 |
|
259 |
+
| ('5i', 'child_prototypical', 'validation') | 54 | 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') | 204 | 1962 |
|
265 |
+
| ('6a', 'child_prototypical', 'validation') | 54 | 530 |
|
266 |
+
| ('6b', 'child', 'train') | 8 | 1327 |
|
267 |
+
| ('6b', 'child', 'validation') | 2 | 331 |
|
268 |
+
| ('6b', 'child_prototypical', 'train') | 180 | 1840 |
|
269 |
+
| ('6b', 'child_prototypical', 'validation') | 30 | 295 |
|
270 |
+
| ('6c', 'child', 'train') | 8 | 1325 |
|
271 |
+
| ('6c', 'child', 'validation') | 2 | 331 |
|
272 |
+
| ('6c', 'child_prototypical', 'train') | 180 | 1968 |
|
273 |
+
| ('6c', 'child_prototypical', 'validation') | 54 | 527 |
|
274 |
+
| ('6d', 'child', 'train') | 8 | 1328 |
|
275 |
+
| ('6d', 'child', 'validation') | 2 | 331 |
|
276 |
+
| ('6d', 'child_prototypical', 'train') | 164 | 1903 |
|
277 |
+
| ('6d', 'child_prototypical', 'validation') | 34 | 358 |
|
278 |
+
| ('6e', 'child', 'train') | 8 | 1327 |
|
279 |
+
| ('6e', 'child', 'validation') | 2 | 331 |
|
280 |
+
| ('6e', 'child_prototypical', 'train') | 170 | 1737 |
|
281 |
+
| ('6e', 'child_prototypical', 'validation') | 40 | 398 |
|
282 |
+
| ('6f', 'child', 'train') | 8 | 1326 |
|
283 |
+
| ('6f', 'child', 'validation') | 2 | 331 |
|
284 |
+
| ('6f', 'child_prototypical', 'train') | 174 | 1652 |
|
285 |
+
| ('6f', 'child_prototypical', 'validation') | 48 | 438 |
|
286 |
+
| ('6g', 'child', 'train') | 8 | 1326 |
|
287 |
+
| ('6g', 'child', 'validation') | 2 | 331 |
|
288 |
+
| ('6g', 'child_prototypical', 'train') | 188 | 1740 |
|
289 |
+
| ('6g', 'child_prototypical', 'validation') | 34 | 239 |
|
290 |
+
| ('6h', 'child', 'train') | 8 | 1324 |
|
291 |
+
| ('6h', 'child', 'validation') | 2 | 330 |
|
292 |
+
| ('6h', 'child_prototypical', 'train') | 230 | 2337 |
|
293 |
+
| ('6h', 'child_prototypical', 'validation') | 28 | 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') | 198 | 2045 |
|
299 |
+
| ('7a', 'child_prototypical', 'validation') | 48 | 516 |
|
300 |
+
| ('7b', 'child', 'train') | 8 | 1330 |
|
301 |
+
| ('7b', 'child', 'validation') | 2 | 332 |
|
302 |
+
| ('7b', 'child_prototypical', 'train') | 138 | 905 |
|
303 |
+
| ('7b', 'child_prototypical', 'validation') | 24 | 177 |
|
304 |
+
| ('7c', 'child', 'train') | 8 | 1327 |
|
305 |
+
| ('7c', 'child', 'validation') | 2 | 331 |
|
306 |
+
| ('7c', 'child_prototypical', 'train') | 170 | 1402 |
|
307 |
+
| ('7c', 'child_prototypical', 'validation') | 40 | 313 |
|
308 |
+
| ('7d', 'child', 'train') | 8 | 1324 |
|
309 |
+
| ('7d', 'child', 'validation') | 2 | 331 |
|
310 |
+
| ('7d', 'child_prototypical', 'train') | 196 | 2064 |
|
311 |
+
| ('7d', 'child_prototypical', 'validation') | 50 | 497 |
|
312 |
+
| ('7e', 'child', 'train') | 8 | 1328 |
|
313 |
+
| ('7e', 'child', 'validation') | 2 | 331 |
|
314 |
+
| ('7e', 'child_prototypical', 'train') | 156 | 1270 |
|
315 |
+
| ('7e', 'child_prototypical', 'validation') | 42 | 298 |
|
316 |
+
| ('7f', 'child', 'train') | 8 | 1326 |
|
317 |
+
| ('7f', 'child', 'validation') | 2 | 331 |
|
318 |
+
| ('7f', 'child_prototypical', 'train') | 178 | 1377 |
|
319 |
+
| ('7f', 'child_prototypical', 'validation') | 44 | 380 |
|
320 |
+
| ('7g', 'child', 'train') | 8 | 1328 |
|
321 |
+
| ('7g', 'child', 'validation') | 2 | 332 |
|
322 |
+
| ('7g', 'child_prototypical', 'train') | 144 | 885 |
|
323 |
+
| ('7g', 'child_prototypical', 'validation') | 42 | 263 |
|
324 |
+
| ('7h', 'child', 'train') | 8 | 1324 |
|
325 |
+
| ('7h', 'child', 'validation') | 2 | 331 |
|
326 |
+
| ('7h', 'child_prototypical', 'train') | 188 | 1479 |
|
327 |
+
| ('7h', 'child_prototypical', 'validation') | 58 | 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') | 186 | 1640 |
|
333 |
+
| ('8a', 'child_prototypical', 'validation') | 60 | 552 |
|
334 |
+
| ('8b', 'child', 'train') | 8 | 1330 |
|
335 |
+
| ('8b', 'child', 'validation') | 2 | 332 |
|
336 |
+
| ('8b', 'child_prototypical', 'train') | 122 | 1126 |
|
337 |
+
| ('8b', 'child_prototypical', 'validation') | 40 | 361 |
|
338 |
+
| ('8c', 'child', 'train') | 8 | 1326 |
|
339 |
+
| ('8c', 'child', 'validation') | 2 | 331 |
|
340 |
+
| ('8c', 'child_prototypical', 'train') | 192 | 1547 |
|
341 |
+
| ('8c', 'child_prototypical', 'validation') | 30 | 210 |
|
342 |
+
| ('8d', 'child', 'train') | 8 | 1325 |
|
343 |
+
| ('8d', 'child', 'validation') | 2 | 331 |
|
344 |
+
| ('8d', 'child_prototypical', 'train') | 184 | 1472 |
|
345 |
+
| ('8d', 'child_prototypical', 'validation') | 50 | 438 |
|
346 |
+
| ('8e', 'child', 'train') | 8 | 1327 |
|
347 |
+
| ('8e', 'child', 'validation') | 2 | 331 |
|
348 |
+
| ('8e', 'child_prototypical', 'train') | 174 | 1340 |
|
349 |
+
| ('8e', 'child_prototypical', 'validation') | 36 | 270 |
|
350 |
+
| ('8f', 'child', 'train') | 8 | 1326 |
|
351 |
+
| ('8f', 'child', 'validation') | 2 | 331 |
|
352 |
+
| ('8f', 'child_prototypical', 'train') | 166 | 1416 |
|
353 |
+
| ('8f', 'child_prototypical', 'validation') | 56 | 452 |
|
354 |
+
| ('8g', 'child', 'train') | 8 | 1330 |
|
355 |
+
| ('8g', 'child', 'validation') | 2 | 332 |
|
356 |
+
| ('8g', 'child_prototypical', 'train') | 124 | 640 |
|
357 |
+
| ('8g', 'child_prototypical', 'validation') | 38 | 199 |
|
358 |
+
| ('8h', 'child', 'train') | 8 | 1324 |
|
359 |
+
| ('8h', 'child', 'validation') | 2 | 331 |
|
360 |
+
| ('8h', 'child_prototypical', 'train') | 200 | 1816 |
|
361 |
+
| ('8h', 'child_prototypical', 'validation') | 46 | 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') | 192 | 1520 |
|
367 |
+
| ('9a', 'child_prototypical', 'validation') | 54 | 426 |
|
368 |
+
| ('9b', 'child', 'train') | 8 | 1326 |
|
369 |
+
| ('9b', 'child', 'validation') | 2 | 331 |
|
370 |
+
| ('9b', 'child_prototypical', 'train') | 186 | 1783 |
|
371 |
+
| ('9b', 'child_prototypical', 'validation') | 36 | 307 |
|
372 |
+
| ('9c', 'child', 'train') | 8 | 1330 |
|
373 |
+
| ('9c', 'child', 'validation') | 2 | 332 |
|
374 |
+
| ('9c', 'child_prototypical', 'train') | 118 | 433 |
|
375 |
+
| ('9c', 'child_prototypical', 'validation') | 44 | 163 |
|
376 |
+
| ('9d', 'child', 'train') | 8 | 1328 |
|
377 |
+
| ('9d', 'child', 'validation') | 2 | 332 |
|
378 |
+
| ('9d', 'child_prototypical', 'train') | 156 | 1683 |
|
379 |
+
| ('9d', 'child_prototypical', 'validation') | 30 | 302 |
|
380 |
+
| ('9e', 'child', 'train') | 8 | 1329 |
|
381 |
+
| ('9e', 'child', 'validation') | 2 | 332 |
|
382 |
+
| ('9e', 'child_prototypical', 'train') | 132 | 1426 |
|
383 |
+
| ('9e', 'child_prototypical', 'validation') | 42 | 475 |
|
384 |
+
| ('9f', 'child', 'train') | 8 | 1328 |
|
385 |
+
| ('9f', 'child', 'validation') | 2 | 331 |
|
386 |
+
| ('9f', 'child_prototypical', 'train') | 158 | 1436 |
|
387 |
+
| ('9f', 'child_prototypical', 'validation') | 40 | 330 |
|
388 |
+
| ('9g', 'child', 'train') | 8 | 1324 |
|
389 |
+
| ('9g', 'child', 'validation') | 2 | 331 |
|
390 |
+
| ('9g', 'child_prototypical', 'train') | 200 | 1685 |
|
391 |
+
| ('9g', 'child_prototypical', 'validation') | 46 | 384 |
|
392 |
+
| ('9h', 'child', 'train') | 8 | 1325 |
|
393 |
+
| ('9h', 'child', 'validation') | 2 | 331 |
|
394 |
+
| ('9h', 'child_prototypical', 'train') | 190 | 1799 |
|
395 |
+
| ('9h', 'child_prototypical', 'validation') | 44 | 462 |
|
396 |
+
| ('9i', 'child', 'train') | 8 | 1328 |
|
397 |
+
| ('9i', 'child', 'validation') | 2 | 332 |
|
398 |
+
| ('9i', 'child_prototypical', 'train') | 158 | 1361 |
|
399 |
+
| ('9i', 'child_prototypical', 'validation') | 28 | 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:4242cec97e478cc5a33964faaf2baa5dcfcc05785bea338c00fc2b8e7e2031ef
|
3 |
+
size 7643792
|
dataset/valid.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2b6b4e16d7fe43df6d347766218111f87739fbe3863b8d53efb24a2e0ef3d4ef
|
3 |
+
size 2318861
|
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_v7')
|
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,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import json
|
2 |
+
import os
|
3 |
+
import tarfile
|
4 |
+
import zipfile
|
5 |
+
import gzip
|
6 |
+
import requests
|
7 |
+
from itertools import chain
|
8 |
+
from glob import glob
|
9 |
+
import gdown
|
10 |
+
from random import seed, shuffle
|
11 |
+
from datasets import load_dataset
|
12 |
+
|
13 |
+
k = 10 # the 3rd level negative-distance ranking
|
14 |
+
m = 5 # the 3rd level negative-distance ranking
|
15 |
+
top_n = 10 # threshold of positive pairs in the 1st and 2nd relation
|
16 |
+
seed(42)
|
17 |
+
|
18 |
+
|
19 |
+
def wget(url, cache_dir: str = './cache', gdrive_filename: str = None):
|
20 |
+
""" wget and uncompress data_iterator """
|
21 |
+
os.makedirs(cache_dir, exist_ok=True)
|
22 |
+
if url.startswith('https://drive.google.com'):
|
23 |
+
assert gdrive_filename is not None, 'please provide fileaname for gdrive download'
|
24 |
+
gdown.download(url, f'{cache_dir}/{gdrive_filename}', quiet=False)
|
25 |
+
filename = gdrive_filename
|
26 |
+
else:
|
27 |
+
filename = os.path.basename(url)
|
28 |
+
with open(f'{cache_dir}/{filename}', "wb") as f:
|
29 |
+
r = requests.get(url)
|
30 |
+
f.write(r.content)
|
31 |
+
path = f'{cache_dir}/{filename}'
|
32 |
+
|
33 |
+
if path.endswith('.tar.gz') or path.endswith('.tgz') or path.endswith('.tar'):
|
34 |
+
if path.endswith('.tar'):
|
35 |
+
tar = tarfile.open(path)
|
36 |
+
else:
|
37 |
+
tar = tarfile.open(path, "r:gz")
|
38 |
+
tar.extractall(cache_dir)
|
39 |
+
tar.close()
|
40 |
+
os.remove(path)
|
41 |
+
elif path.endswith('.zip'):
|
42 |
+
with zipfile.ZipFile(path, 'r') as zip_ref:
|
43 |
+
zip_ref.extractall(cache_dir)
|
44 |
+
os.remove(path)
|
45 |
+
elif path.endswith('.gz'):
|
46 |
+
with gzip.open(path, 'rb') as f:
|
47 |
+
with open(path.replace('.gz', ''), 'wb') as f_write:
|
48 |
+
f_write.write(f.read())
|
49 |
+
os.remove(path)
|
50 |
+
|
51 |
+
|
52 |
+
def get_training_data():
|
53 |
+
""" Get RelBERT training data
|
54 |
+
|
55 |
+
Returns
|
56 |
+
-------
|
57 |
+
pairs: dictionary of list (positive pairs, negative pairs)
|
58 |
+
{'1b': [[0.6, ('office', 'desk'), ..], [[-0.1, ('aaa', 'bbb'), ...]]
|
59 |
+
"""
|
60 |
+
cache_dir = 'cache'
|
61 |
+
os.makedirs(cache_dir, exist_ok=True)
|
62 |
+
remove_relation = None
|
63 |
+
path_answer = f'{cache_dir}/Phase2Answers'
|
64 |
+
path_scale = f'{cache_dir}/Phase2AnswersScaled'
|
65 |
+
url = 'https://drive.google.com/u/0/uc?id=0BzcZKTSeYL8VYWtHVmxUR3FyUmc&export=download'
|
66 |
+
filename = 'SemEval-2012-Platinum-Ratings.tar.gz'
|
67 |
+
if not (os.path.exists(path_scale) and os.path.exists(path_answer)):
|
68 |
+
wget(url, gdrive_filename=filename, cache_dir=cache_dir)
|
69 |
+
files_answer = [os.path.basename(i) for i in glob(f'{path_answer}/*.txt')]
|
70 |
+
files_scale = [os.path.basename(i) for i in glob(f'{path_scale}/*.txt')]
|
71 |
+
assert files_answer == files_scale, f'files are not matched: {files_scale} vs {files_answer}'
|
72 |
+
positives = {}
|
73 |
+
negatives = {}
|
74 |
+
positives_limit = {}
|
75 |
+
all_relation_type = {}
|
76 |
+
# score_range = [90.0, 88.7] # the absolute value of max/min prototypicality rating
|
77 |
+
for i in files_scale:
|
78 |
+
relation_id = i.split('-')[-1].replace('.txt', '')
|
79 |
+
if remove_relation and int(relation_id[:-1]) in remove_relation:
|
80 |
+
continue
|
81 |
+
with open(f'{path_answer}/{i}', 'r') as f:
|
82 |
+
lines_answer = [_l.replace('"', '').split('\t') for _l in f.read().split('\n')
|
83 |
+
if not _l.startswith('#') and len(_l)]
|
84 |
+
relation_type = list(set(list(zip(*lines_answer))[-1]))
|
85 |
+
assert len(relation_type) == 1, relation_type
|
86 |
+
relation_type = relation_type[0]
|
87 |
+
with open(f'{path_scale}/{i}', 'r') as f:
|
88 |
+
# list of tuple [score, ("a", "b")]
|
89 |
+
scales = [[float(_l[:5]), _l[6:].replace('"', '')] for _l in f.read().split('\n')
|
90 |
+
if not _l.startswith('#') and len(_l)]
|
91 |
+
scales = sorted(scales, key=lambda _x: _x[0])
|
92 |
+
# positive pairs are in the reverse order of prototypicality score
|
93 |
+
positive_pairs = [[s, tuple(p.split(':'))] for s, p in filter(lambda _x: _x[0] > 0, scales)]
|
94 |
+
positive_pairs = sorted(positive_pairs, key=lambda x: x[0], reverse=True)
|
95 |
+
positives[relation_id] = list(list(zip(*positive_pairs))[1])
|
96 |
+
positives_limit[relation_id] = list(list(zip(*positive_pairs[:min(top_n, len(positive_pairs))]))[1])
|
97 |
+
negatives[relation_id] = [tuple(p.split(':')) for s, p in filter(lambda _x: _x[0] < 0, scales)]
|
98 |
+
all_relation_type[relation_id] = relation_type
|
99 |
+
parent = list(set([i[:-1] for i in all_relation_type.keys()]))
|
100 |
+
|
101 |
+
# 1st level relation contrast (among parent relations)
|
102 |
+
relation_pairs_1st = []
|
103 |
+
for p in parent:
|
104 |
+
child_positive = list(filter(lambda x: x.startswith(p), list(all_relation_type.keys())))
|
105 |
+
child_negative = list(filter(lambda x: not x.startswith(p), list(all_relation_type.keys())))
|
106 |
+
positive_pairs = []
|
107 |
+
negative_pairs = []
|
108 |
+
for c in child_positive:
|
109 |
+
positive_pairs += positives_limit[c]
|
110 |
+
for c in child_negative:
|
111 |
+
negative_pairs += positives_limit[c]
|
112 |
+
|
113 |
+
relation_pairs_1st += [{
|
114 |
+
"positives": positive_pairs, "negatives": negative_pairs, "relation_type": p, "level": "parent"
|
115 |
+
}]
|
116 |
+
|
117 |
+
# 2nd level relation contrast (among child relations) & 3rd level relation contrast (within child relations)
|
118 |
+
relation_pairs_2nd = []
|
119 |
+
for p in all_relation_type.keys():
|
120 |
+
positive_pairs = positives_limit[p]
|
121 |
+
negative_pairs = []
|
122 |
+
for n in all_relation_type.keys():
|
123 |
+
if p == n:
|
124 |
+
continue
|
125 |
+
negative_pairs += positives[n]
|
126 |
+
|
127 |
+
relation_pairs_2nd += [{
|
128 |
+
"positives": positive_pairs, "negatives": negative_pairs, "relation_type": p, "level": "child"
|
129 |
+
}]
|
130 |
+
|
131 |
+
relation_pairs_3rd = []
|
132 |
+
for p in all_relation_type.keys():
|
133 |
+
positive_pairs = positives[p]
|
134 |
+
negative_pairs = positives[p] + negatives[p]
|
135 |
+
for n, anchor in enumerate(positive_pairs):
|
136 |
+
if n > m:
|
137 |
+
continue
|
138 |
+
for _n, posi in enumerate(positive_pairs):
|
139 |
+
if n < _n and len(negative_pairs) > _n + k:
|
140 |
+
relation_pairs_3rd += [{
|
141 |
+
"positives": [anchor, posi],
|
142 |
+
"negatives": negative_pairs[_n + k:],
|
143 |
+
"relation_type": p,
|
144 |
+
"level": "child_prototypical"
|
145 |
+
}]
|
146 |
+
print(len(relation_pairs_3rd))
|
147 |
+
|
148 |
+
train = relation_pairs_1st + relation_pairs_2nd + relation_pairs_3rd
|
149 |
+
|
150 |
+
# conceptnet as the validation set
|
151 |
+
cn = load_dataset('relbert/conceptnet_high_confidence_v2')
|
152 |
+
valid = list(chain(*cn.values()))
|
153 |
+
for i in valid:
|
154 |
+
i['level'] = 'N/A'
|
155 |
+
return train, valid
|
156 |
+
|
157 |
+
|
158 |
+
if __name__ == '__main__':
|
159 |
+
data_train, data_validation = get_training_data()
|
160 |
+
print(f"- training data : {len(data_train)}")
|
161 |
+
print(f"- validation data : {len(data_validation)}")
|
162 |
+
with open('dataset/train.jsonl', 'w') as f_writer:
|
163 |
+
f_writer.write('\n'.join([json.dumps(i) for i in data_train]))
|
164 |
+
with open('dataset/valid.jsonl', 'w') as f_writer:
|
165 |
+
f_writer.write('\n'.join([json.dumps(i) for i in data_validation]))
|
semeval2012_relational_similarity_v7.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_v7"
|
8 |
+
_VERSION = "1.1.2"
|
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}/resolve/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 SemEVAL2012RelationalSimilarityV7Config(datasets.BuilderConfig):
|
35 |
+
"""BuilderConfig"""
|
36 |
+
|
37 |
+
def __init__(self, **kwargs):
|
38 |
+
"""BuilderConfig.
|
39 |
+
Args:
|
40 |
+
**kwargs: keyword arguments forwarded to super.
|
41 |
+
"""
|
42 |
+
super(SemEVAL2012RelationalSimilarityV7Config, self).__init__(**kwargs)
|
43 |
+
|
44 |
+
|
45 |
+
class SemEVAL2012RelationalSimilarityV7(datasets.GeneratorBasedBuilder):
|
46 |
+
"""Dataset."""
|
47 |
+
|
48 |
+
BUILDER_CONFIGS = [
|
49 |
+
SemEVAL2012RelationalSimilarityV7Config(
|
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,194,1917
|
9 |
+
10a,child_prototypical,validation,52,521
|
10 |
+
10b,child,train,8,1325
|
11 |
+
10b,child,validation,2,331
|
12 |
+
10b,child_prototypical,train,180,1558
|
13 |
+
10b,child_prototypical,validation,54,469
|
14 |
+
10c,child,train,8,1327
|
15 |
+
10c,child,validation,2,331
|
16 |
+
10c,child_prototypical,train,170,1640
|
17 |
+
10c,child_prototypical,validation,40,390
|
18 |
+
10d,child,train,8,1328
|
19 |
+
10d,child,validation,2,331
|
20 |
+
10d,child_prototypical,train,154,1390
|
21 |
+
10d,child_prototypical,validation,44,376
|
22 |
+
10e,child,train,8,1329
|
23 |
+
10e,child,validation,2,332
|
24 |
+
10e,child_prototypical,train,134,884
|
25 |
+
10e,child_prototypical,validation,40,234
|
26 |
+
10f,child,train,8,1328
|
27 |
+
10f,child,validation,2,331
|
28 |
+
10f,child_prototypical,train,160,1460
|
29 |
+
10f,child_prototypical,validation,38,306
|
30 |
+
1a,child,train,8,1324
|
31 |
+
1a,child,validation,2,331
|
32 |
+
1a,child_prototypical,train,212,1854
|
33 |
+
1a,child_prototypical,validation,34,338
|
34 |
+
1b,child,train,8,1324
|
35 |
+
1b,child,validation,2,331
|
36 |
+
1b,child_prototypical,train,190,1712
|
37 |
+
1b,child_prototypical,validation,56,480
|
38 |
+
1c,child,train,8,1327
|
39 |
+
1c,child,validation,2,331
|
40 |
+
1c,child_prototypical,train,160,1528
|
41 |
+
1c,child_prototypical,validation,50,502
|
42 |
+
1d,child,train,8,1323
|
43 |
+
1d,child,validation,2,330
|
44 |
+
1d,child_prototypical,train,224,2082
|
45 |
+
1d,child_prototypical,validation,46,458
|
46 |
+
1e,child,train,8,1329
|
47 |
+
1e,child,validation,2,332
|
48 |
+
1e,child_prototypical,train,126,775
|
49 |
+
1e,child_prototypical,validation,48,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,186,1885
|
55 |
+
2a,child_prototypical,validation,72,736
|
56 |
+
2b,child,train,8,1327
|
57 |
+
2b,child,validation,2,331
|
58 |
+
2b,child_prototypical,train,172,1326
|
59 |
+
2b,child_prototypical,validation,38,284
|
60 |
+
2c,child,train,8,1325
|
61 |
+
2c,child,validation,2,331
|
62 |
+
2c,child_prototypical,train,192,1773
|
63 |
+
2c,child_prototypical,validation,42,371
|
64 |
+
2d,child,train,8,1328
|
65 |
+
2d,child,validation,2,331
|
66 |
+
2d,child_prototypical,train,158,1329
|
67 |
+
2d,child_prototypical,validation,40,338
|
68 |
+
2e,child,train,8,1327
|
69 |
+
2e,child,validation,2,331
|
70 |
+
2e,child_prototypical,train,164,1462
|
71 |
+
2e,child_prototypical,validation,46,463
|
72 |
+
2f,child,train,8,1327
|
73 |
+
2f,child,validation,2,331
|
74 |
+
2f,child_prototypical,train,176,1869
|
75 |
+
2f,child_prototypical,validation,34,371
|
76 |
+
2g,child,train,8,1323
|
77 |
+
2g,child,validation,2,330
|
78 |
+
2g,child_prototypical,train,216,1925
|
79 |
+
2g,child_prototypical,validation,54,480
|
80 |
+
2h,child,train,8,1327
|
81 |
+
2h,child,validation,2,331
|
82 |
+
2h,child_prototypical,train,168,1540
|
83 |
+
2h,child_prototypical,validation,42,385
|
84 |
+
2i,child,train,8,1328
|
85 |
+
2i,child,validation,2,332
|
86 |
+
2i,child_prototypical,train,144,1335
|
87 |
+
2i,child_prototypical,validation,42,371
|
88 |
+
2j,child,train,8,1328
|
89 |
+
2j,child,validation,2,331
|
90 |
+
2j,child_prototypical,train,160,1595
|
91 |
+
2j,child_prototypical,validation,38,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,174,1597
|
97 |
+
3a,child_prototypical,validation,36,328
|
98 |
+
3b,child,train,8,1327
|
99 |
+
3b,child,validation,2,331
|
100 |
+
3b,child_prototypical,train,174,1833
|
101 |
+
3b,child_prototypical,validation,36,407
|
102 |
+
3c,child,train,8,1326
|
103 |
+
3c,child,validation,2,331
|
104 |
+
3c,child_prototypical,train,186,1664
|
105 |
+
3c,child_prototypical,validation,36,315
|
106 |
+
3d,child,train,8,1324
|
107 |
+
3d,child,validation,2,331
|
108 |
+
3d,child_prototypical,train,202,1943
|
109 |
+
3d,child_prototypical,validation,44,372
|
110 |
+
3e,child,train,8,1332
|
111 |
+
3e,child,validation,2,332
|
112 |
+
3e,child_prototypical,train,98,900
|
113 |
+
3e,child_prototypical,validation,40,368
|
114 |
+
3f,child,train,8,1327
|
115 |
+
3f,child,validation,2,331
|
116 |
+
3f,child_prototypical,train,180,1983
|
117 |
+
3f,child_prototypical,validation,30,362
|
118 |
+
3g,child,train,8,1331
|
119 |
+
3g,child,validation,2,332
|
120 |
+
3g,child_prototypical,train,122,1089
|
121 |
+
3g,child_prototypical,validation,28,251
|
122 |
+
3h,child,train,8,1328
|
123 |
+
3h,child,validation,2,331
|
124 |
+
3h,child_prototypical,train,142,1399
|
125 |
+
3h,child_prototypical,validation,56,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,170,1766
|
131 |
+
4a,child_prototypical,validation,40,474
|
132 |
+
4b,child,train,8,1330
|
133 |
+
4b,child,validation,2,332
|
134 |
+
4b,child_prototypical,train,132,949
|
135 |
+
4b,child_prototypical,validation,30,214
|
136 |
+
4c,child,train,8,1326
|
137 |
+
4c,child,validation,2,331
|
138 |
+
4c,child_prototypical,train,172,1755
|
139 |
+
4c,child_prototypical,validation,50,446
|
140 |
+
4d,child,train,8,1332
|
141 |
+
4d,child,validation,2,333
|
142 |
+
4d,child_prototypical,train,92,531
|
143 |
+
4d,child_prototypical,validation,34,218
|
144 |
+
4e,child,train,8,1326
|
145 |
+
4e,child,validation,2,331
|
146 |
+
4e,child_prototypical,train,184,2021
|
147 |
+
4e,child_prototypical,validation,38,402
|
148 |
+
4f,child,train,8,1328
|
149 |
+
4f,child,validation,2,332
|
150 |
+
4f,child_prototypical,train,144,1464
|
151 |
+
4f,child_prototypical,validation,42,428
|
152 |
+
4g,child,train,8,1324
|
153 |
+
4g,child,validation,2,330
|
154 |
+
4g,child_prototypical,train,212,2057
|
155 |
+
4g,child_prototypical,validation,46,435
|
156 |
+
4h,child,train,8,1326
|
157 |
+
4h,child,validation,2,331
|
158 |
+
4h,child_prototypical,train,170,1787
|
159 |
+
4h,child_prototypical,validation,52,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,202,1876
|
165 |
+
5a,child_prototypical,validation,44,439
|
166 |
+
5b,child,train,8,1329
|
167 |
+
5b,child,validation,2,332
|
168 |
+
5b,child_prototypical,train,140,1310
|
169 |
+
5b,child_prototypical,validation,34,330
|
170 |
+
5c,child,train,8,1327
|
171 |
+
5c,child,validation,2,331
|
172 |
+
5c,child_prototypical,train,170,1552
|
173 |
+
5c,child_prototypical,validation,40,373
|
174 |
+
5d,child,train,8,1324
|
175 |
+
5d,child,validation,2,330
|
176 |
+
5d,child_prototypical,train,204,1783
|
177 |
+
5d,child_prototypical,validation,54,580
|
178 |
+
5e,child,train,8,1329
|
179 |
+
5e,child,validation,2,332
|
180 |
+
5e,child_prototypical,train,136,1283
|
181 |
+
5e,child_prototypical,validation,38,357
|
182 |
+
5f,child,train,8,1327
|
183 |
+
5f,child,validation,2,331
|
184 |
+
5f,child_prototypical,train,154,1568
|
185 |
+
5f,child_prototypical,validation,56,567
|
186 |
+
5g,child,train,8,1328
|
187 |
+
5g,child,validation,2,332
|
188 |
+
5g,child_prototypical,train,158,1626
|
189 |
+
5g,child_prototypical,validation,28,266
|
190 |
+
5h,child,train,8,1324
|
191 |
+
5h,child,validation,2,330
|
192 |
+
5h,child_prototypical,train,218,2348
|
193 |
+
5h,child_prototypical,validation,40,402
|
194 |
+
5i,child,train,8,1324
|
195 |
+
5i,child,validation,2,331
|
196 |
+
5i,child_prototypical,train,192,2010
|
197 |
+
5i,child_prototypical,validation,54,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,204,1962
|
203 |
+
6a,child_prototypical,validation,54,530
|
204 |
+
6b,child,train,8,1327
|
205 |
+
6b,child,validation,2,331
|
206 |
+
6b,child_prototypical,train,180,1840
|
207 |
+
6b,child_prototypical,validation,30,295
|
208 |
+
6c,child,train,8,1325
|
209 |
+
6c,child,validation,2,331
|
210 |
+
6c,child_prototypical,train,180,1968
|
211 |
+
6c,child_prototypical,validation,54,527
|
212 |
+
6d,child,train,8,1328
|
213 |
+
6d,child,validation,2,331
|
214 |
+
6d,child_prototypical,train,164,1903
|
215 |
+
6d,child_prototypical,validation,34,358
|
216 |
+
6e,child,train,8,1327
|
217 |
+
6e,child,validation,2,331
|
218 |
+
6e,child_prototypical,train,170,1737
|
219 |
+
6e,child_prototypical,validation,40,398
|
220 |
+
6f,child,train,8,1326
|
221 |
+
6f,child,validation,2,331
|
222 |
+
6f,child_prototypical,train,174,1652
|
223 |
+
6f,child_prototypical,validation,48,438
|
224 |
+
6g,child,train,8,1326
|
225 |
+
6g,child,validation,2,331
|
226 |
+
6g,child_prototypical,train,188,1740
|
227 |
+
6g,child_prototypical,validation,34,239
|
228 |
+
6h,child,train,8,1324
|
229 |
+
6h,child,validation,2,330
|
230 |
+
6h,child_prototypical,train,230,2337
|
231 |
+
6h,child_prototypical,validation,28,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,198,2045
|
237 |
+
7a,child_prototypical,validation,48,516
|
238 |
+
7b,child,train,8,1330
|
239 |
+
7b,child,validation,2,332
|
240 |
+
7b,child_prototypical,train,138,905
|
241 |
+
7b,child_prototypical,validation,24,177
|
242 |
+
7c,child,train,8,1327
|
243 |
+
7c,child,validation,2,331
|
244 |
+
7c,child_prototypical,train,170,1402
|
245 |
+
7c,child_prototypical,validation,40,313
|
246 |
+
7d,child,train,8,1324
|
247 |
+
7d,child,validation,2,331
|
248 |
+
7d,child_prototypical,train,196,2064
|
249 |
+
7d,child_prototypical,validation,50,497
|
250 |
+
7e,child,train,8,1328
|
251 |
+
7e,child,validation,2,331
|
252 |
+
7e,child_prototypical,train,156,1270
|
253 |
+
7e,child_prototypical,validation,42,298
|
254 |
+
7f,child,train,8,1326
|
255 |
+
7f,child,validation,2,331
|
256 |
+
7f,child_prototypical,train,178,1377
|
257 |
+
7f,child_prototypical,validation,44,380
|
258 |
+
7g,child,train,8,1328
|
259 |
+
7g,child,validation,2,332
|
260 |
+
7g,child_prototypical,train,144,885
|
261 |
+
7g,child_prototypical,validation,42,263
|
262 |
+
7h,child,train,8,1324
|
263 |
+
7h,child,validation,2,331
|
264 |
+
7h,child_prototypical,train,188,1479
|
265 |
+
7h,child_prototypical,validation,58,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,186,1640
|
271 |
+
8a,child_prototypical,validation,60,552
|
272 |
+
8b,child,train,8,1330
|
273 |
+
8b,child,validation,2,332
|
274 |
+
8b,child_prototypical,train,122,1126
|
275 |
+
8b,child_prototypical,validation,40,361
|
276 |
+
8c,child,train,8,1326
|
277 |
+
8c,child,validation,2,331
|
278 |
+
8c,child_prototypical,train,192,1547
|
279 |
+
8c,child_prototypical,validation,30,210
|
280 |
+
8d,child,train,8,1325
|
281 |
+
8d,child,validation,2,331
|
282 |
+
8d,child_prototypical,train,184,1472
|
283 |
+
8d,child_prototypical,validation,50,438
|
284 |
+
8e,child,train,8,1327
|
285 |
+
8e,child,validation,2,331
|
286 |
+
8e,child_prototypical,train,174,1340
|
287 |
+
8e,child_prototypical,validation,36,270
|
288 |
+
8f,child,train,8,1326
|
289 |
+
8f,child,validation,2,331
|
290 |
+
8f,child_prototypical,train,166,1416
|
291 |
+
8f,child_prototypical,validation,56,452
|
292 |
+
8g,child,train,8,1330
|
293 |
+
8g,child,validation,2,332
|
294 |
+
8g,child_prototypical,train,124,640
|
295 |
+
8g,child_prototypical,validation,38,199
|
296 |
+
8h,child,train,8,1324
|
297 |
+
8h,child,validation,2,331
|
298 |
+
8h,child_prototypical,train,200,1816
|
299 |
+
8h,child_prototypical,validation,46,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,192,1520
|
305 |
+
9a,child_prototypical,validation,54,426
|
306 |
+
9b,child,train,8,1326
|
307 |
+
9b,child,validation,2,331
|
308 |
+
9b,child_prototypical,train,186,1783
|
309 |
+
9b,child_prototypical,validation,36,307
|
310 |
+
9c,child,train,8,1330
|
311 |
+
9c,child,validation,2,332
|
312 |
+
9c,child_prototypical,train,118,433
|
313 |
+
9c,child_prototypical,validation,44,163
|
314 |
+
9d,child,train,8,1328
|
315 |
+
9d,child,validation,2,332
|
316 |
+
9d,child_prototypical,train,156,1683
|
317 |
+
9d,child_prototypical,validation,30,302
|
318 |
+
9e,child,train,8,1329
|
319 |
+
9e,child,validation,2,332
|
320 |
+
9e,child_prototypical,train,132,1426
|
321 |
+
9e,child_prototypical,validation,42,475
|
322 |
+
9f,child,train,8,1328
|
323 |
+
9f,child,validation,2,331
|
324 |
+
9f,child_prototypical,train,158,1436
|
325 |
+
9f,child_prototypical,validation,40,330
|
326 |
+
9g,child,train,8,1324
|
327 |
+
9g,child,validation,2,331
|
328 |
+
9g,child_prototypical,train,200,1685
|
329 |
+
9g,child_prototypical,validation,46,384
|
330 |
+
9h,child,train,8,1325
|
331 |
+
9h,child,validation,2,331
|
332 |
+
9h,child_prototypical,train,190,1799
|
333 |
+
9h,child_prototypical,validation,44,462
|
334 |
+
9i,child,train,8,1328
|
335 |
+
9i,child,validation,2,332
|
336 |
+
9i,child_prototypical,train,158,1361
|
337 |
+
9i,child_prototypical,validation,28,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') | 194 | 1917 |
|
10 |
+
| ('10a', 'child_prototypical', 'validation') | 52 | 521 |
|
11 |
+
| ('10b', 'child', 'train') | 8 | 1325 |
|
12 |
+
| ('10b', 'child', 'validation') | 2 | 331 |
|
13 |
+
| ('10b', 'child_prototypical', 'train') | 180 | 1558 |
|
14 |
+
| ('10b', 'child_prototypical', 'validation') | 54 | 469 |
|
15 |
+
| ('10c', 'child', 'train') | 8 | 1327 |
|
16 |
+
| ('10c', 'child', 'validation') | 2 | 331 |
|
17 |
+
| ('10c', 'child_prototypical', 'train') | 170 | 1640 |
|
18 |
+
| ('10c', 'child_prototypical', 'validation') | 40 | 390 |
|
19 |
+
| ('10d', 'child', 'train') | 8 | 1328 |
|
20 |
+
| ('10d', 'child', 'validation') | 2 | 331 |
|
21 |
+
| ('10d', 'child_prototypical', 'train') | 154 | 1390 |
|
22 |
+
| ('10d', 'child_prototypical', 'validation') | 44 | 376 |
|
23 |
+
| ('10e', 'child', 'train') | 8 | 1329 |
|
24 |
+
| ('10e', 'child', 'validation') | 2 | 332 |
|
25 |
+
| ('10e', 'child_prototypical', 'train') | 134 | 884 |
|
26 |
+
| ('10e', 'child_prototypical', 'validation') | 40 | 234 |
|
27 |
+
| ('10f', 'child', 'train') | 8 | 1328 |
|
28 |
+
| ('10f', 'child', 'validation') | 2 | 331 |
|
29 |
+
| ('10f', 'child_prototypical', 'train') | 160 | 1460 |
|
30 |
+
| ('10f', 'child_prototypical', 'validation') | 38 | 306 |
|
31 |
+
| ('1a', 'child', 'train') | 8 | 1324 |
|
32 |
+
| ('1a', 'child', 'validation') | 2 | 331 |
|
33 |
+
| ('1a', 'child_prototypical', 'train') | 212 | 1854 |
|
34 |
+
| ('1a', 'child_prototypical', 'validation') | 34 | 338 |
|
35 |
+
| ('1b', 'child', 'train') | 8 | 1324 |
|
36 |
+
| ('1b', 'child', 'validation') | 2 | 331 |
|
37 |
+
| ('1b', 'child_prototypical', 'train') | 190 | 1712 |
|
38 |
+
| ('1b', 'child_prototypical', 'validation') | 56 | 480 |
|
39 |
+
| ('1c', 'child', 'train') | 8 | 1327 |
|
40 |
+
| ('1c', 'child', 'validation') | 2 | 331 |
|
41 |
+
| ('1c', 'child_prototypical', 'train') | 160 | 1528 |
|
42 |
+
| ('1c', 'child_prototypical', 'validation') | 50 | 502 |
|
43 |
+
| ('1d', 'child', 'train') | 8 | 1323 |
|
44 |
+
| ('1d', 'child', 'validation') | 2 | 330 |
|
45 |
+
| ('1d', 'child_prototypical', 'train') | 224 | 2082 |
|
46 |
+
| ('1d', 'child_prototypical', 'validation') | 46 | 458 |
|
47 |
+
| ('1e', 'child', 'train') | 8 | 1329 |
|
48 |
+
| ('1e', 'child', 'validation') | 2 | 332 |
|
49 |
+
| ('1e', 'child_prototypical', 'train') | 126 | 775 |
|
50 |
+
| ('1e', 'child_prototypical', 'validation') | 48 | 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') | 186 | 1885 |
|
56 |
+
| ('2a', 'child_prototypical', 'validation') | 72 | 736 |
|
57 |
+
| ('2b', 'child', 'train') | 8 | 1327 |
|
58 |
+
| ('2b', 'child', 'validation') | 2 | 331 |
|
59 |
+
| ('2b', 'child_prototypical', 'train') | 172 | 1326 |
|
60 |
+
| ('2b', 'child_prototypical', 'validation') | 38 | 284 |
|
61 |
+
| ('2c', 'child', 'train') | 8 | 1325 |
|
62 |
+
| ('2c', 'child', 'validation') | 2 | 331 |
|
63 |
+
| ('2c', 'child_prototypical', 'train') | 192 | 1773 |
|
64 |
+
| ('2c', 'child_prototypical', 'validation') | 42 | 371 |
|
65 |
+
| ('2d', 'child', 'train') | 8 | 1328 |
|
66 |
+
| ('2d', 'child', 'validation') | 2 | 331 |
|
67 |
+
| ('2d', 'child_prototypical', 'train') | 158 | 1329 |
|
68 |
+
| ('2d', 'child_prototypical', 'validation') | 40 | 338 |
|
69 |
+
| ('2e', 'child', 'train') | 8 | 1327 |
|
70 |
+
| ('2e', 'child', 'validation') | 2 | 331 |
|
71 |
+
| ('2e', 'child_prototypical', 'train') | 164 | 1462 |
|
72 |
+
| ('2e', 'child_prototypical', 'validation') | 46 | 463 |
|
73 |
+
| ('2f', 'child', 'train') | 8 | 1327 |
|
74 |
+
| ('2f', 'child', 'validation') | 2 | 331 |
|
75 |
+
| ('2f', 'child_prototypical', 'train') | 176 | 1869 |
|
76 |
+
| ('2f', 'child_prototypical', 'validation') | 34 | 371 |
|
77 |
+
| ('2g', 'child', 'train') | 8 | 1323 |
|
78 |
+
| ('2g', 'child', 'validation') | 2 | 330 |
|
79 |
+
| ('2g', 'child_prototypical', 'train') | 216 | 1925 |
|
80 |
+
| ('2g', 'child_prototypical', 'validation') | 54 | 480 |
|
81 |
+
| ('2h', 'child', 'train') | 8 | 1327 |
|
82 |
+
| ('2h', 'child', 'validation') | 2 | 331 |
|
83 |
+
| ('2h', 'child_prototypical', 'train') | 168 | 1540 |
|
84 |
+
| ('2h', 'child_prototypical', 'validation') | 42 | 385 |
|
85 |
+
| ('2i', 'child', 'train') | 8 | 1328 |
|
86 |
+
| ('2i', 'child', 'validation') | 2 | 332 |
|
87 |
+
| ('2i', 'child_prototypical', 'train') | 144 | 1335 |
|
88 |
+
| ('2i', 'child_prototypical', 'validation') | 42 | 371 |
|
89 |
+
| ('2j', 'child', 'train') | 8 | 1328 |
|
90 |
+
| ('2j', 'child', 'validation') | 2 | 331 |
|
91 |
+
| ('2j', 'child_prototypical', 'train') | 160 | 1595 |
|
92 |
+
| ('2j', 'child_prototypical', 'validation') | 38 | 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') | 174 | 1597 |
|
98 |
+
| ('3a', 'child_prototypical', 'validation') | 36 | 328 |
|
99 |
+
| ('3b', 'child', 'train') | 8 | 1327 |
|
100 |
+
| ('3b', 'child', 'validation') | 2 | 331 |
|
101 |
+
| ('3b', 'child_prototypical', 'train') | 174 | 1833 |
|
102 |
+
| ('3b', 'child_prototypical', 'validation') | 36 | 407 |
|
103 |
+
| ('3c', 'child', 'train') | 8 | 1326 |
|
104 |
+
| ('3c', 'child', 'validation') | 2 | 331 |
|
105 |
+
| ('3c', 'child_prototypical', 'train') | 186 | 1664 |
|
106 |
+
| ('3c', 'child_prototypical', 'validation') | 36 | 315 |
|
107 |
+
| ('3d', 'child', 'train') | 8 | 1324 |
|
108 |
+
| ('3d', 'child', 'validation') | 2 | 331 |
|
109 |
+
| ('3d', 'child_prototypical', 'train') | 202 | 1943 |
|
110 |
+
| ('3d', 'child_prototypical', 'validation') | 44 | 372 |
|
111 |
+
| ('3e', 'child', 'train') | 8 | 1332 |
|
112 |
+
| ('3e', 'child', 'validation') | 2 | 332 |
|
113 |
+
| ('3e', 'child_prototypical', 'train') | 98 | 900 |
|
114 |
+
| ('3e', 'child_prototypical', 'validation') | 40 | 368 |
|
115 |
+
| ('3f', 'child', 'train') | 8 | 1327 |
|
116 |
+
| ('3f', 'child', 'validation') | 2 | 331 |
|
117 |
+
| ('3f', 'child_prototypical', 'train') | 180 | 1983 |
|
118 |
+
| ('3f', 'child_prototypical', 'validation') | 30 | 362 |
|
119 |
+
| ('3g', 'child', 'train') | 8 | 1331 |
|
120 |
+
| ('3g', 'child', 'validation') | 2 | 332 |
|
121 |
+
| ('3g', 'child_prototypical', 'train') | 122 | 1089 |
|
122 |
+
| ('3g', 'child_prototypical', 'validation') | 28 | 251 |
|
123 |
+
| ('3h', 'child', 'train') | 8 | 1328 |
|
124 |
+
| ('3h', 'child', 'validation') | 2 | 331 |
|
125 |
+
| ('3h', 'child_prototypical', 'train') | 142 | 1399 |
|
126 |
+
| ('3h', 'child_prototypical', 'validation') | 56 | 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') | 170 | 1766 |
|
132 |
+
| ('4a', 'child_prototypical', 'validation') | 40 | 474 |
|
133 |
+
| ('4b', 'child', 'train') | 8 | 1330 |
|
134 |
+
| ('4b', 'child', 'validation') | 2 | 332 |
|
135 |
+
| ('4b', 'child_prototypical', 'train') | 132 | 949 |
|
136 |
+
| ('4b', 'child_prototypical', 'validation') | 30 | 214 |
|
137 |
+
| ('4c', 'child', 'train') | 8 | 1326 |
|
138 |
+
| ('4c', 'child', 'validation') | 2 | 331 |
|
139 |
+
| ('4c', 'child_prototypical', 'train') | 172 | 1755 |
|
140 |
+
| ('4c', 'child_prototypical', 'validation') | 50 | 446 |
|
141 |
+
| ('4d', 'child', 'train') | 8 | 1332 |
|
142 |
+
| ('4d', 'child', 'validation') | 2 | 333 |
|
143 |
+
| ('4d', 'child_prototypical', 'train') | 92 | 531 |
|
144 |
+
| ('4d', 'child_prototypical', 'validation') | 34 | 218 |
|
145 |
+
| ('4e', 'child', 'train') | 8 | 1326 |
|
146 |
+
| ('4e', 'child', 'validation') | 2 | 331 |
|
147 |
+
| ('4e', 'child_prototypical', 'train') | 184 | 2021 |
|
148 |
+
| ('4e', 'child_prototypical', 'validation') | 38 | 402 |
|
149 |
+
| ('4f', 'child', 'train') | 8 | 1328 |
|
150 |
+
| ('4f', 'child', 'validation') | 2 | 332 |
|
151 |
+
| ('4f', 'child_prototypical', 'train') | 144 | 1464 |
|
152 |
+
| ('4f', 'child_prototypical', 'validation') | 42 | 428 |
|
153 |
+
| ('4g', 'child', 'train') | 8 | 1324 |
|
154 |
+
| ('4g', 'child', 'validation') | 2 | 330 |
|
155 |
+
| ('4g', 'child_prototypical', 'train') | 212 | 2057 |
|
156 |
+
| ('4g', 'child_prototypical', 'validation') | 46 | 435 |
|
157 |
+
| ('4h', 'child', 'train') | 8 | 1326 |
|
158 |
+
| ('4h', 'child', 'validation') | 2 | 331 |
|
159 |
+
| ('4h', 'child_prototypical', 'train') | 170 | 1787 |
|
160 |
+
| ('4h', 'child_prototypical', 'validation') | 52 | 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') | 202 | 1876 |
|
166 |
+
| ('5a', 'child_prototypical', 'validation') | 44 | 439 |
|
167 |
+
| ('5b', 'child', 'train') | 8 | 1329 |
|
168 |
+
| ('5b', 'child', 'validation') | 2 | 332 |
|
169 |
+
| ('5b', 'child_prototypical', 'train') | 140 | 1310 |
|
170 |
+
| ('5b', 'child_prototypical', 'validation') | 34 | 330 |
|
171 |
+
| ('5c', 'child', 'train') | 8 | 1327 |
|
172 |
+
| ('5c', 'child', 'validation') | 2 | 331 |
|
173 |
+
| ('5c', 'child_prototypical', 'train') | 170 | 1552 |
|
174 |
+
| ('5c', 'child_prototypical', 'validation') | 40 | 373 |
|
175 |
+
| ('5d', 'child', 'train') | 8 | 1324 |
|
176 |
+
| ('5d', 'child', 'validation') | 2 | 330 |
|
177 |
+
| ('5d', 'child_prototypical', 'train') | 204 | 1783 |
|
178 |
+
| ('5d', 'child_prototypical', 'validation') | 54 | 580 |
|
179 |
+
| ('5e', 'child', 'train') | 8 | 1329 |
|
180 |
+
| ('5e', 'child', 'validation') | 2 | 332 |
|
181 |
+
| ('5e', 'child_prototypical', 'train') | 136 | 1283 |
|
182 |
+
| ('5e', 'child_prototypical', 'validation') | 38 | 357 |
|
183 |
+
| ('5f', 'child', 'train') | 8 | 1327 |
|
184 |
+
| ('5f', 'child', 'validation') | 2 | 331 |
|
185 |
+
| ('5f', 'child_prototypical', 'train') | 154 | 1568 |
|
186 |
+
| ('5f', 'child_prototypical', 'validation') | 56 | 567 |
|
187 |
+
| ('5g', 'child', 'train') | 8 | 1328 |
|
188 |
+
| ('5g', 'child', 'validation') | 2 | 332 |
|
189 |
+
| ('5g', 'child_prototypical', 'train') | 158 | 1626 |
|
190 |
+
| ('5g', 'child_prototypical', 'validation') | 28 | 266 |
|
191 |
+
| ('5h', 'child', 'train') | 8 | 1324 |
|
192 |
+
| ('5h', 'child', 'validation') | 2 | 330 |
|
193 |
+
| ('5h', 'child_prototypical', 'train') | 218 | 2348 |
|
194 |
+
| ('5h', 'child_prototypical', 'validation') | 40 | 402 |
|
195 |
+
| ('5i', 'child', 'train') | 8 | 1324 |
|
196 |
+
| ('5i', 'child', 'validation') | 2 | 331 |
|
197 |
+
| ('5i', 'child_prototypical', 'train') | 192 | 2010 |
|
198 |
+
| ('5i', 'child_prototypical', 'validation') | 54 | 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') | 204 | 1962 |
|
204 |
+
| ('6a', 'child_prototypical', 'validation') | 54 | 530 |
|
205 |
+
| ('6b', 'child', 'train') | 8 | 1327 |
|
206 |
+
| ('6b', 'child', 'validation') | 2 | 331 |
|
207 |
+
| ('6b', 'child_prototypical', 'train') | 180 | 1840 |
|
208 |
+
| ('6b', 'child_prototypical', 'validation') | 30 | 295 |
|
209 |
+
| ('6c', 'child', 'train') | 8 | 1325 |
|
210 |
+
| ('6c', 'child', 'validation') | 2 | 331 |
|
211 |
+
| ('6c', 'child_prototypical', 'train') | 180 | 1968 |
|
212 |
+
| ('6c', 'child_prototypical', 'validation') | 54 | 527 |
|
213 |
+
| ('6d', 'child', 'train') | 8 | 1328 |
|
214 |
+
| ('6d', 'child', 'validation') | 2 | 331 |
|
215 |
+
| ('6d', 'child_prototypical', 'train') | 164 | 1903 |
|
216 |
+
| ('6d', 'child_prototypical', 'validation') | 34 | 358 |
|
217 |
+
| ('6e', 'child', 'train') | 8 | 1327 |
|
218 |
+
| ('6e', 'child', 'validation') | 2 | 331 |
|
219 |
+
| ('6e', 'child_prototypical', 'train') | 170 | 1737 |
|
220 |
+
| ('6e', 'child_prototypical', 'validation') | 40 | 398 |
|
221 |
+
| ('6f', 'child', 'train') | 8 | 1326 |
|
222 |
+
| ('6f', 'child', 'validation') | 2 | 331 |
|
223 |
+
| ('6f', 'child_prototypical', 'train') | 174 | 1652 |
|
224 |
+
| ('6f', 'child_prototypical', 'validation') | 48 | 438 |
|
225 |
+
| ('6g', 'child', 'train') | 8 | 1326 |
|
226 |
+
| ('6g', 'child', 'validation') | 2 | 331 |
|
227 |
+
| ('6g', 'child_prototypical', 'train') | 188 | 1740 |
|
228 |
+
| ('6g', 'child_prototypical', 'validation') | 34 | 239 |
|
229 |
+
| ('6h', 'child', 'train') | 8 | 1324 |
|
230 |
+
| ('6h', 'child', 'validation') | 2 | 330 |
|
231 |
+
| ('6h', 'child_prototypical', 'train') | 230 | 2337 |
|
232 |
+
| ('6h', 'child_prototypical', 'validation') | 28 | 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') | 198 | 2045 |
|
238 |
+
| ('7a', 'child_prototypical', 'validation') | 48 | 516 |
|
239 |
+
| ('7b', 'child', 'train') | 8 | 1330 |
|
240 |
+
| ('7b', 'child', 'validation') | 2 | 332 |
|
241 |
+
| ('7b', 'child_prototypical', 'train') | 138 | 905 |
|
242 |
+
| ('7b', 'child_prototypical', 'validation') | 24 | 177 |
|
243 |
+
| ('7c', 'child', 'train') | 8 | 1327 |
|
244 |
+
| ('7c', 'child', 'validation') | 2 | 331 |
|
245 |
+
| ('7c', 'child_prototypical', 'train') | 170 | 1402 |
|
246 |
+
| ('7c', 'child_prototypical', 'validation') | 40 | 313 |
|
247 |
+
| ('7d', 'child', 'train') | 8 | 1324 |
|
248 |
+
| ('7d', 'child', 'validation') | 2 | 331 |
|
249 |
+
| ('7d', 'child_prototypical', 'train') | 196 | 2064 |
|
250 |
+
| ('7d', 'child_prototypical', 'validation') | 50 | 497 |
|
251 |
+
| ('7e', 'child', 'train') | 8 | 1328 |
|
252 |
+
| ('7e', 'child', 'validation') | 2 | 331 |
|
253 |
+
| ('7e', 'child_prototypical', 'train') | 156 | 1270 |
|
254 |
+
| ('7e', 'child_prototypical', 'validation') | 42 | 298 |
|
255 |
+
| ('7f', 'child', 'train') | 8 | 1326 |
|
256 |
+
| ('7f', 'child', 'validation') | 2 | 331 |
|
257 |
+
| ('7f', 'child_prototypical', 'train') | 178 | 1377 |
|
258 |
+
| ('7f', 'child_prototypical', 'validation') | 44 | 380 |
|
259 |
+
| ('7g', 'child', 'train') | 8 | 1328 |
|
260 |
+
| ('7g', 'child', 'validation') | 2 | 332 |
|
261 |
+
| ('7g', 'child_prototypical', 'train') | 144 | 885 |
|
262 |
+
| ('7g', 'child_prototypical', 'validation') | 42 | 263 |
|
263 |
+
| ('7h', 'child', 'train') | 8 | 1324 |
|
264 |
+
| ('7h', 'child', 'validation') | 2 | 331 |
|
265 |
+
| ('7h', 'child_prototypical', 'train') | 188 | 1479 |
|
266 |
+
| ('7h', 'child_prototypical', 'validation') | 58 | 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') | 186 | 1640 |
|
272 |
+
| ('8a', 'child_prototypical', 'validation') | 60 | 552 |
|
273 |
+
| ('8b', 'child', 'train') | 8 | 1330 |
|
274 |
+
| ('8b', 'child', 'validation') | 2 | 332 |
|
275 |
+
| ('8b', 'child_prototypical', 'train') | 122 | 1126 |
|
276 |
+
| ('8b', 'child_prototypical', 'validation') | 40 | 361 |
|
277 |
+
| ('8c', 'child', 'train') | 8 | 1326 |
|
278 |
+
| ('8c', 'child', 'validation') | 2 | 331 |
|
279 |
+
| ('8c', 'child_prototypical', 'train') | 192 | 1547 |
|
280 |
+
| ('8c', 'child_prototypical', 'validation') | 30 | 210 |
|
281 |
+
| ('8d', 'child', 'train') | 8 | 1325 |
|
282 |
+
| ('8d', 'child', 'validation') | 2 | 331 |
|
283 |
+
| ('8d', 'child_prototypical', 'train') | 184 | 1472 |
|
284 |
+
| ('8d', 'child_prototypical', 'validation') | 50 | 438 |
|
285 |
+
| ('8e', 'child', 'train') | 8 | 1327 |
|
286 |
+
| ('8e', 'child', 'validation') | 2 | 331 |
|
287 |
+
| ('8e', 'child_prototypical', 'train') | 174 | 1340 |
|
288 |
+
| ('8e', 'child_prototypical', 'validation') | 36 | 270 |
|
289 |
+
| ('8f', 'child', 'train') | 8 | 1326 |
|
290 |
+
| ('8f', 'child', 'validation') | 2 | 331 |
|
291 |
+
| ('8f', 'child_prototypical', 'train') | 166 | 1416 |
|
292 |
+
| ('8f', 'child_prototypical', 'validation') | 56 | 452 |
|
293 |
+
| ('8g', 'child', 'train') | 8 | 1330 |
|
294 |
+
| ('8g', 'child', 'validation') | 2 | 332 |
|
295 |
+
| ('8g', 'child_prototypical', 'train') | 124 | 640 |
|
296 |
+
| ('8g', 'child_prototypical', 'validation') | 38 | 199 |
|
297 |
+
| ('8h', 'child', 'train') | 8 | 1324 |
|
298 |
+
| ('8h', 'child', 'validation') | 2 | 331 |
|
299 |
+
| ('8h', 'child_prototypical', 'train') | 200 | 1816 |
|
300 |
+
| ('8h', 'child_prototypical', 'validation') | 46 | 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') | 192 | 1520 |
|
306 |
+
| ('9a', 'child_prototypical', 'validation') | 54 | 426 |
|
307 |
+
| ('9b', 'child', 'train') | 8 | 1326 |
|
308 |
+
| ('9b', 'child', 'validation') | 2 | 331 |
|
309 |
+
| ('9b', 'child_prototypical', 'train') | 186 | 1783 |
|
310 |
+
| ('9b', 'child_prototypical', 'validation') | 36 | 307 |
|
311 |
+
| ('9c', 'child', 'train') | 8 | 1330 |
|
312 |
+
| ('9c', 'child', 'validation') | 2 | 332 |
|
313 |
+
| ('9c', 'child_prototypical', 'train') | 118 | 433 |
|
314 |
+
| ('9c', 'child_prototypical', 'validation') | 44 | 163 |
|
315 |
+
| ('9d', 'child', 'train') | 8 | 1328 |
|
316 |
+
| ('9d', 'child', 'validation') | 2 | 332 |
|
317 |
+
| ('9d', 'child_prototypical', 'train') | 156 | 1683 |
|
318 |
+
| ('9d', 'child_prototypical', 'validation') | 30 | 302 |
|
319 |
+
| ('9e', 'child', 'train') | 8 | 1329 |
|
320 |
+
| ('9e', 'child', 'validation') | 2 | 332 |
|
321 |
+
| ('9e', 'child_prototypical', 'train') | 132 | 1426 |
|
322 |
+
| ('9e', 'child_prototypical', 'validation') | 42 | 475 |
|
323 |
+
| ('9f', 'child', 'train') | 8 | 1328 |
|
324 |
+
| ('9f', 'child', 'validation') | 2 | 331 |
|
325 |
+
| ('9f', 'child_prototypical', 'train') | 158 | 1436 |
|
326 |
+
| ('9f', 'child_prototypical', 'validation') | 40 | 330 |
|
327 |
+
| ('9g', 'child', 'train') | 8 | 1324 |
|
328 |
+
| ('9g', 'child', 'validation') | 2 | 331 |
|
329 |
+
| ('9g', 'child_prototypical', 'train') | 200 | 1685 |
|
330 |
+
| ('9g', 'child_prototypical', 'validation') | 46 | 384 |
|
331 |
+
| ('9h', 'child', 'train') | 8 | 1325 |
|
332 |
+
| ('9h', 'child', 'validation') | 2 | 331 |
|
333 |
+
| ('9h', 'child_prototypical', 'train') | 190 | 1799 |
|
334 |
+
| ('9h', 'child_prototypical', 'validation') | 44 | 462 |
|
335 |
+
| ('9i', 'child', 'train') | 8 | 1328 |
|
336 |
+
| ('9i', 'child', 'validation') | 2 | 332 |
|
337 |
+
| ('9i', 'child_prototypical', 'train') | 158 | 1361 |
|
338 |
+
| ('9i', 'child_prototypical', 'validation') | 28 | 252 |
|