File size: 10,398 Bytes
6a4de0f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4968f95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6a4de0f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
---
license: cc-by-4.0
---

# Clean ConceptNet Data for All Languages

## Data Details

For our project on [Retrofitting Glove embeddings for Low Resource Languages](https://github.com/pyRis/retrofitting-embeddings-lrls/tree/main?tab=readme-ov-file), we extracted all data from the [ConceptNet](https://github.com/commonsense/conceptnet5/wiki/Downloads) database for 304 languages. The extraction process involved several steps to clean and analyze the data from the official ConceptNet dump available [here](https://s3.amazonaws.com/conceptnet/downloads/2019/edges/conceptnet-assertions-5.7.0.csv.gz).

The final extracted dataset is a JSON file representing a dictionary with language codes and start and end edges for each language. Start edges represent the unique words in a target language, while end edges are the words related to the start edges through various types of relationships. The relationship types and sources are not extracted.

### Dataset Structure

cn_relations_clean.json:

``
{
'language_iso_code_1':{'start_edge_word_1':['end_edge_word_1', 'end_edge_word_2', ...], ...},
...
}
``

### Dataset Details

| Language Code | Start Edges | End Edges |
| --- | ------- | ------- |
| ab  | 252     | 470     |
| adx | 549     | 884     |
| ae  | 192     | 583     |
| af  | 12973   | 27263   |
| ang | 9788    | 42140   |
| ar  | 75684   | 148744  |
| arc | 1688    | 4555    |
| arn | 1181    | 2540    |
| ast | 27485   | 35625   |
| av  | 172     | 256     |
| az  | 13277   | 20363   |
| ba  | 4250    | 15745   |
| bal | 370     | 877     |
| be  | 14871   | 20806   |
| bg  | 171740  | 203272  |
| bm  | 2422    | 6082    |
| bn  | 7306    | 10979   |
| bo  | 2127    | 5961    |
| br  | 11665   | 19923   |
| ca  | 82706   | 182331  |
| ce  | 2311    | 2994    |
| ceb | 18882   | 46877   |
| chk | 724     | 1251    |
| cim | 889     | 1842    |
| cop | 1071    | 4606    |
| crh | 2449    | 5064    |
| cs  | 77422   | 195513  |
| csb | 602     | 1169    |
| cu  | 7526    | 13555   |
| cy  | 13243   | 25507   |
| da  | 46600   | 91833   |
| de  | 500260  | 1682740 |
| dsb | 3993    | 8395    |
| ee  | 571     | 934     |
| egl | 854     | 2892    |
| egx | 1890    | 7189    |
| egy | 447     | 516     |
| el  | 39667   | 112012  |
| en  | 941858  | 5123286 |
| enm | 17286   | 38396   |
| eo  | 91074   | 143024  |
| es  | 646097  | 945036  |
| et  | 20088   | 34980   |
| eu  | 41427   | 75928   |
| fa  | 46736   | 89120   |
| fi  | 259852  | 589931  |
| fil | 16165   | 38613   |
| fj  | 209     | 452     |
| fo  | 10513   | 32922   |
| fr  | 1449790 | 3871820 |
| frm | 4472    | 10636   |
| fro | 14493   | 41614   |
| frp | 2799    | 9840    |
| frr | 476     | 1743    |
| fur | 2295    | 9386    |
| fy  | 7608    | 15078   |
| ga  | 29459   | 79505   |
| gag | 505     | 841     |
| gd  | 14418   | 41729   |
| gl  | 52824   | 95824   |
| gml | 177     | 722     |
| got | 2982    | 8258    |
| grc | 25689   | 69250   |
| gu  | 4427    | 11282   |
| gv  | 6812    | 22512   |
| haw | 1371    | 4768    |
| hbo | 2898    | 3824    |
| he  | 27283   | 52365   |
| hi  | 18363   | 52422   |
| hil | 1414    | 3544    |
| hsb | 25778   | 26913   |
| ht  | 2699    | 4685    |
| hu  | 65163   | 138230  |
| hy  | 23434   | 63055   |
| ia  | 5728    | 8835    |
| io  | 21076   | 48758   |
| is  | 40287   | 90890   |
| ist | 422     | 1792    |
| it  | 548767  | 975877  |
| iu  | 1871    | 4031    |
| ja  | 283049  | 1473713 |
| ka  | 25014   | 44660   |
| khb | 297     | 1053    |
| ki  | 1374    | 3873    |
| kjh | 482     | 1412    |
| kk  | 13700   | 20243   |
| kl  | 1427    | 2814    |
| km  | 3466    | 14703   |
| ko  | 30616   | 57974   |
| koy | 205     | 423     |
| ku  | 9737    | 16008   |
| kw  | 1797    | 3754    |
| ky  | 3574    | 4570    |
| la  | 848943  | 1103644 |
| lad | 1453    | 3239    |
| lb  | 10863   | 27341   |
| li  | 485     | 1284    |
| lij | 1331    | 3760    |
| lld | 4884    | 6479    |
| lmo | 2109    | 2388    |
| ln  | 4109    | 10005   |
| lo  | 1422    | 5289    |
| lt  | 21184   | 31588   |
| lv  | 30059   | 84061   |
| mdf | 2086    | 3301    |
| mg  | 26575   | 28503   |
| mga | 178     | 582     |
| mi  | 945     | 2503    |
| mk  | 28935   | 47833   |
| mn  | 6740    | 16462   |
| ms  | 88416   | 236012  |
| mt  | 2006    | 4933    |
| mul | 16034   | 425333  |
| mwl | 1302    | 1975    |
| my  | 4875    | 9251    |
| myv | 642     | 1492    |
| nap | 1506    | 2754    |
| nci | 3358    | 9871    |
| nds | 5192    | 12205   |
| nl  | 138580  | 347510  |
| no  | 94946   | 173186  |
| nog | 450     | 676     |
| non | 4079    | 12588   |
| nov | 649     | 1523    |
| nrf | 9724    | 31582   |
| nv  | 6333    | 19455   |
| oc  | 22113   | 42380   |
| oge | 438     | 936     |
| osp | 458     | 1332    |
| ota | 834     | 2604    |
| pal | 256     | 808     |
| pcd | 1424    | 3367    |
| pi  | 1828    | 3774    |
| pjt | 364     | 718     |
| pl  | 139396  | 227321  |
| ppl | 268     | 740     |
| pro | 2798    | 5015    |
| ps  | 1087    | 2423    |
| pt  | 248669  | 502566  |
| rm  | 3919    | 12959   |
| ro  | 36206   | 95016   |
| rom | 552     | 1011    |
| ru  | 424944  | 672836  |
| rue | 200     | 447     |
| rup | 3079    | 17106   |
| rw  | 355     | 525     |
| sa  | 5789    | 26810   |
| scn | 4749    | 8161    |
| sco | 8537    | 14598   |
| se  | 68758   | 82605   |
| ses | 3095    | 5790    |
| sga | 2913    | 8507    |
| sh  | 57974   | 122601  |
| sk  | 21657   | 32058   |
| sl  | 89210   | 110311  |
| sm  | 588     | 1124    |
| so  | 593     | 781     |
| sq  | 16262   | 42776   |
| stq | 1237    | 4562    |
| su  | 2514    | 2802    |
| sv  | 133965  | 253397  |
| sw  | 9131    | 17048   |
| swb | 672     | 800     |
| syc | 2855    | 20456   |
| szl | 237     | 386     |
| ta  | 9064    | 11125   |
| te  | 18707   | 41847   |
| tg  | 2937    | 4995    |
| th  | 94281   | 155060  |
| tk  | 815     | 1560    |
| tpi | 1511    | 4032    |
| tpw | 270     | 540     |
| tr  | 38490   | 71535   |
| tt  | 4676    | 6086    |
| ty  | 293     | 646     |
| tyv | 337     | 761     |
| ug  | 998     | 2151    |
| uk  | 27682   | 35275   |
| ur  | 8476    | 17376   |
| uz  | 5224    | 6296    |
| vec | 5555    | 11298   |
| vep | 2867    | 6443    |
| vi  | 37433   | 105546  |
| vo  | 8277    | 15818   |
| vot | 489     | 941     |
| wa  | 1956    | 3189    |
| wau | 184     | 728     |
| wo  | 1196    | 1855    |
| wym | 1330    | 2775    |
| xcl | 16182   | 40937   |
| yi  | 8054    | 17814   |
| yua | 735     | 1571    |
| za  | 473     | 1611    |
| zh  | 274080  | 1040323 |
| zza | 621     | 1299    |
| abe | 185     | 353     |
| ady | 3807    | 8277    |
| ain | 298     | 555     |
| akk | 313     | 729     |
| akz | 151     | 271     |
| alt | 289     | 568     |
| an  | 4457    | 5283    |
| axm | 350     | 828     |
| ccc | 445     | 619     |
| ch  | 174     | 340     |
| chl | 528     | 905     |
| cho | 155     | 406     |
| chr | 1087    | 1560    |
| cic | 699     | 1128    |
| cjs | 306     | 512     |
| cv  | 2892    | 3646    |
| dlm | 1091    | 4297    |
| dum | 2040    | 7426    |
| esu | 227     | 612     |
| ff  | 215     | 404     |
| gmh | 217     | 620     |
| gn  | 131     | 184     |
| goh | 2002    | 6720    |
| gsw | 2336    | 8129    |
| ha  | 802     | 1743    |
| hit | 221     | 696     |
| ie  | 637     | 840     |
| ii  | 51      | 142     |
| ilo | 442     | 780     |
| jv  | 4919    | 5949    |
| kbd | 762     | 1709    |
| kn  | 3415    | 5158    |
| krl | 637     | 1033    |
| liv | 569     | 1630    |
| lkt | 682     | 1710    |
| ltg | 139     | 374     |
| lzz | 127     | 263     |
| mch | 384     | 582     |
| mh  | 200     | 524     |
| ml  | 6750    | 7108    |
| mr  | 5545    | 9198    |
| na  | 200     | 362     |
| nah | 1612    | 1627    |
| nan | 486     | 960     |
| ne  | 4224    | 5605    |
| nhn | 269     | 499     |
| nmn | 313     | 998     |
| odt | 365     | 667     |
| ofs | 345     | 501     |
| oj  | 587     | 1372    |
| or  | 109     | 262     |
| orv | 199     | 374     |
| os  | 4481    | 5616    |
| osx | 1848    | 4978    |
| pa  | 4488    | 6511    |
| pap | 3612    | 9452    |
| peo | 184     | 566     |
| pms | 2857    | 3013    |
| qu  | 5156    | 10936   |
| raj | 190     | 627     |
| rap | 313     | 618     |
| sah | 2695    | 3753    |
| sc  | 573     | 1246    |
| sd  | 143     | 334     |
| si  | 2062    | 2248    |
| smn | 511     | 892     |
| sms | 493     | 771     |
| srn | 1249    | 3578    |
| sux | 785     | 1503    |
| tet | 361     | 658     |
| twf | 527     | 1291    |
| txb | 588     | 1344    |
| uga | 573     | 1382    |
| war | 12987   | 13825   |
| xh  | 2504    | 3213    |
| xmf | 149     | 383     |
| xpr | 98      | 196     |
| xwo | 456     | 896     |
| yo  | 2283    | 2384    |
| zu  | 2758    | 8067    |
| co  | 1474    | 2319    |
| prg | 480     | 913     |
| aii | 345     | 459     |
| am  | 1909    | 2273    |
| bi  | 92      | 320     |
| dv  | 117     | 221     |
| kim | 388     | 473     |
| krc | 460     | 762     |
| kum | 505     | 871     |
| ti  | 292     | 390     |
| udm | 306     | 436     |
| xto | 121     | 492     |
| zdj | 58      | 77      |
| dak | 879     | 1735    |
| frk | 1       | 8       |
| oma | 748     | 1111    |
| shh | 185     | 385     |
| aa  | 725     | 987     |
| dje | 338     | 651     |
| hke | 246     | 514     |
| qya | 180     | 894     |
| st  | 102     | 126     |
| wae | 437     | 566     |
| xno | 274     | 446     |
| dua | 317     | 834     |
| fon | 805     | 1858    |
| hak | 4       | 6       |
| jbo | 32      | 44      |

### Licensing Information

This work includes data from ConceptNet 5, which was compiled by the
Commonsense Computing Initiative. ConceptNet 5 is freely available under
the Creative Commons Attribution-ShareAlike license (CC BY SA 3.0) from
http://conceptnet.io.

### Citation Information

```
@paper{speer2017conceptnet,
    author = {Robyn Speer and Joshua Chin and Catherine Havasi},
    title = {ConceptNet 5.5: An Open Multilingual Graph of General Knowledge},
    conference = {AAAI Conference on Artificial Intelligence},
    year = {2017},
    pages = {4444--4451},
    keywords = {ConceptNet; knowledge graph; word embeddings},
    url = {http://aaai.org/ocs/index.php/AAAI/AAAI17/paper/view/14972}
}
```