Datasets:

Modalities:
Text
Formats:
csv
ArXiv:
Libraries:
Datasets
pandas
License:
kargaranamir commited on
Commit
344fad0
·
1 Parent(s): edf8088

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +509 -0
README.md CHANGED
@@ -1,3 +1,512 @@
1
  ---
2
  license: cc0-1.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc0-1.0
3
+
4
+ configs:
5
+ - config_name: default
6
+ data_files: "udhr-lid.csv"
7
+
8
+ multilinguality:
9
+ - multilingual
10
+
11
+ language:
12
+ - tir
13
+ - rmn
14
+ - arb
15
+ - mxv
16
+ - mal
17
+ - fij
18
+ - som
19
+ - cot
20
+ - fur
21
+ - vie
22
+ - zlm
23
+ - bam
24
+ - chr
25
+ - maz
26
+ - yad
27
+ - ztu
28
+ - ykg
29
+ - ccp
30
+ - alt
31
+ - ayr
32
+ - njo
33
+ - bci
34
+ - gyr
35
+ - run
36
+ - haw
37
+ - rgn
38
+ - cak
39
+ - kwi
40
+ - fra
41
+ - agr
42
+ - duu
43
+ - ilo
44
+ - nhn
45
+ - kdh
46
+ - cnh
47
+ - bod
48
+ - mya
49
+ - ady
50
+ - pol
51
+ - ydd
52
+ - cos
53
+ - lot
54
+ - arl
55
+ - glv
56
+ - gag
57
+ - bfa
58
+ - afr
59
+ - lij
60
+ - zlm
61
+ - ibb
62
+ - toi
63
+ - tzm
64
+ - ron
65
+ - ojb
66
+ - san
67
+ - eng
68
+ - bum
69
+ - pam
70
+ - kqs
71
+ - dje
72
+ - auc
73
+ - smo
74
+ - por
75
+ - fry
76
+ - lad
77
+ - pov
78
+ - tyv
79
+ - guc
80
+ - huu
81
+ - ese
82
+ - kbp
83
+ - eve
84
+ - yrk
85
+ - lin
86
+ - tdt
87
+ - qvc
88
+ - top
89
+ - nav
90
+ - twi
91
+ - oss
92
+ - lia
93
+ - ame
94
+ - hun
95
+ - lit
96
+ - que
97
+ - qug
98
+ - nku
99
+ - csa
100
+ - lao
101
+ - knc
102
+ - kjh
103
+ - jav
104
+ - mam
105
+ - ita
106
+ - ppl
107
+ - aar
108
+ - tbz
109
+ - ssw
110
+ - bug
111
+ - srp
112
+ - kaz
113
+ - min
114
+ - mad
115
+ - orh
116
+ - tgk
117
+ - kat
118
+ - uig
119
+ - tzo
120
+ - hat
121
+ - shn
122
+ - kbd
123
+ - niv
124
+ - idu
125
+ - krl
126
+ - abk
127
+ - mto
128
+ - gla
129
+ - ijs
130
+ - cri
131
+ - uzn
132
+ - tah
133
+ - tob
134
+ - kir
135
+ - quy
136
+ - hnj
137
+ - srr
138
+ - lvs
139
+ - nan
140
+ - hns
141
+ - snk
142
+ - swh
143
+ - ekk
144
+ - guu
145
+ - div
146
+ - dzo
147
+ - spa
148
+ - hms
149
+ - ell
150
+ - ace
151
+ - war
152
+ - ind
153
+ - cjy
154
+ - cfm
155
+ - nds
156
+ - ewe
157
+ - tel
158
+ - src
159
+ - fuf
160
+ - vmw
161
+ - zro
162
+ - men
163
+ - kqn
164
+ - nzi
165
+ - taj
166
+ - khk
167
+ - ddn
168
+ - nso
169
+ - mxi
170
+ - pon
171
+ - fvr
172
+ - hau
173
+ - ktu
174
+ - tem
175
+ - yor
176
+ - pnb
177
+ - ltz
178
+ - evn
179
+ - cjs
180
+ - nba
181
+ - niu
182
+ - dan
183
+ - acu
184
+ - zgh
185
+ - chj
186
+ - heb
187
+ - lua
188
+ - quz
189
+ - uig
190
+ - cbi
191
+ - jav
192
+ - cpu
193
+ - wuu
194
+ - mah
195
+ - kmb
196
+ - mcd
197
+ - ben
198
+ - lus
199
+ - ajg
200
+ - azj
201
+ - tha
202
+ - dga
203
+ - isl
204
+ - sus
205
+ - fuf
206
+ - fkv
207
+ - jiv
208
+ - mor
209
+ - nio
210
+ - als
211
+ - buc
212
+ - kde
213
+ - nbl
214
+ - ceb
215
+ - ven
216
+ - sun
217
+ - cbt
218
+ - swb
219
+ - tur
220
+ - dyo
221
+ - sin
222
+ - pbu
223
+ - ada
224
+ - pap
225
+ - qvh
226
+ - loz
227
+ - pan
228
+ - qva
229
+ - sme
230
+ - bax
231
+ - tuk
232
+ - hsb
233
+ - hus
234
+ - qvn
235
+ - ban
236
+ - cha
237
+ - zyb
238
+ - hin
239
+ - tat
240
+ - uzn
241
+ - qxu
242
+ - gej
243
+ - quc
244
+ - mnw
245
+ - bho
246
+ - udu
247
+ - kha
248
+ - kbr
249
+ - tsz
250
+ - pau
251
+ - mkd
252
+ - shp
253
+ - ike
254
+ - lue
255
+ - tgl
256
+ - yap
257
+ - yua
258
+ - koi
259
+ - hrv
260
+ - emk
261
+ - tet
262
+ - ndo
263
+ - cbu
264
+ - vep
265
+ - cmn
266
+ - sag
267
+ - nym
268
+ - rus
269
+ - gjn
270
+ - guk
271
+ - kri
272
+ - ote
273
+ - lun
274
+ - vai
275
+ - bis
276
+ - arn
277
+ - tsn
278
+ - gle
279
+ - hak
280
+ - gkp
281
+ - ura
282
+ - tca
283
+ - xho
284
+ - wln
285
+ - amc
286
+ - mos
287
+ - lld
288
+ - bul
289
+ - qxn
290
+ - bcl
291
+ - ctd
292
+ - dip
293
+ - dag
294
+ - kek
295
+ - bre
296
+ - mri
297
+ - fin
298
+ - sah
299
+ - cym
300
+ - kan
301
+ - fao
302
+ - gsw
303
+ - sey
304
+ - bem
305
+ - bos
306
+ - bin
307
+ - chv
308
+ - tpi
309
+ - ami
310
+ - oaa
311
+ - lob
312
+ - ast
313
+ - nno
314
+ - sco
315
+ - tuk
316
+ - khm
317
+ - pes
318
+ - pbb
319
+ - tam
320
+ - ibo
321
+ - san
322
+ - sid
323
+ - plt
324
+ - guj
325
+ - hsn
326
+ - kin
327
+ - lug
328
+ - slr
329
+ - koo
330
+ - xsm
331
+ - jpn
332
+ - oki
333
+ - deu
334
+ - rar
335
+ - pcm
336
+ - hni
337
+ - vec
338
+ - gld
339
+ - sot
340
+ - crs
341
+ - fuv
342
+ - srp
343
+ - npi
344
+ - nya
345
+ - kea
346
+ - blt
347
+ - roh
348
+ - cbr
349
+ - chk
350
+ - kal
351
+ - mfq
352
+ - quh
353
+ - kor
354
+ - slv
355
+ - cof
356
+ - shk
357
+ - zul
358
+ - qwh
359
+ - fon
360
+ - mic
361
+ - prs
362
+ - mag
363
+ - bel
364
+ - iii
365
+ - mar
366
+ - dyu
367
+ - boa
368
+ - swe
369
+ - pis
370
+ - mlt
371
+ - amh
372
+ - umb
373
+ - cnr
374
+ - mai
375
+ - toj
376
+ - csw
377
+ - ina
378
+ - bba
379
+ - cbs
380
+ - kng
381
+ - oci
382
+ - pcd
383
+ - miq
384
+ - lat
385
+ - qvm
386
+ - wwa
387
+ - bos
388
+ - urd
389
+ - kmr
390
+ - ido
391
+ - gaa
392
+ - epo
393
+ - gaz
394
+ - cat
395
+ - hye
396
+ - cni
397
+ - suk
398
+ - gug
399
+ - gan
400
+ - cjk
401
+ - tzh
402
+ - zam
403
+ - ces
404
+ - cic
405
+ - mcf
406
+ - not
407
+ - kaa
408
+ - tso
409
+ - piu
410
+ - fat
411
+ - mzi
412
+ - snn
413
+ - tly
414
+ - eus
415
+ - nld
416
+ - nob
417
+ - wol
418
+ - hlt
419
+ - sna
420
+ - tiv
421
+ - ton
422
+ - hea
423
+ - skr
424
+ - lns
425
+ - rup
426
+ - cab
427
+ - glg
428
+ - tgl
429
+ - yao
430
+ - nyn
431
+ - aii
432
+ - tzm
433
+ - slk
434
+ - ukr
435
+ - kkh
436
+ - zdj
437
+ - amr
438
+ - yue
439
+ - crh
440
+ - hil
441
+ tags:
442
+ - UDHR
443
+ - udhr
444
+ - language identification
445
+ - LID
446
+ - glot
447
+ - GlotLID
448
+ pretty_name: UDHR-LID
449
  ---
450
+
451
+ # UDHR-LID
452
+
453
+ **Why UDHR-LID?**
454
+
455
+ You can access UDHR [here](http://www.unicode.org/udhr/d/), but when a verse is missing, they have texts such as "missing" or "?". Also, about 1/3 of the sentences consist only of "articles 1-30" in different languages. We cleaned the entire dataset from XML files and selected only the paragraphs. We cleared any unrelated language texts from the data and also removed the cases that were incorrect.
456
+
457
+ Incorrect? Look at the ckb and kmr files in the UDHR. Both are the same! ckb is known for the Arabic script, although it can also be written in Latin. Clearly, a unique file cannot belong to two different languages. We also deleted files that we believe those scripts are no longer in use.
458
+
459
+ The deleted files include:
460
+ - ckb_Latn (Arabic is in use.)
461
+ - azb_Latn (Arabic is in use.)
462
+ - azj_Cyrl (Latin is in use.)
463
+ - khk_Mong (Cyrillic is in use.)
464
+ - vie_Hani (Latin is in use.)
465
+
466
+ For dealing with scripts in other languages, if you are interested, check Glotscript [code](https://github.com/cisnlp/GlotScript) and [paper](https://arxiv.org/abs/2309.13320). We have prepared a tool for detecting the script of a text, as well as metadata to determine the correct script for each language.
467
+
468
+ We believe UDHR should remain a test corpus in NLP, not a training corpus. Of course, we are not opposed to great works such as Franc built on top of UDHR. However, if your work scale is much bigger than UDHR, do not put UDHR in your data. Use it as test/validation, or find out what is wrong with your training data with help of UDHR. Be aware that a part of UDHR may be hosted on other websites such as Wikipedia, news websites like BBC, collaborative translation communities like Tatoeba. Before using UDHR as a test, exclude any sentence where UDHR is a part of your training.
469
+
470
+ We created this corpus for language identification evaluation task, but feel free to use it for your own task. The texts here are not in order, and they're not parallel. However, each row of data belongs to the determined language, long, cleaned, and has rich linguistic content!
471
+
472
+ ## Usage (HF Loader)
473
+
474
+ Substitute `aar_Latn` with your preferred language:
475
+
476
+ ```python
477
+ from datasets import load_dataset
478
+ dataset = load_dataset('cis-lmu/udhr-lid', 'aar_Latn', split='test')
479
+ print(dataset[0]) # First row data of aar_Latn
480
+ ```
481
+
482
+ ## Download
483
+ If you are not a fan of the HF dataloader, download each language directly:
484
+
485
+ ```python
486
+ ! wget https://huggingface.co/datasets/cis-lmu/udhr-lid/resolve/main/aar_Latn.txt
487
+ ```
488
+
489
+ or clone the whole repository:
490
+
491
+ ```python
492
+ ! git clone https://huggingface.co/datasets/cis-lmu/udhr-lid
493
+ ```
494
+
495
+ ## License
496
+ UDHR is the most translated copyright-free document in the world.
497
+ We license the actual packaging, the metadata and the annotations of these data under the cc0-1.0 (waiving all of the rights under copyright law).
498
+
499
+
500
+ ## Citation
501
+ If you use any part of this data in your research , please cite it (along with http://www.unicode.org/udhr/d/) using the following BibTeX entry.
502
+
503
+ ```
504
+ @inproceedings{
505
+ kargaran2023glotlid,
506
+ title={{GlotLID}: Language Identification for Low-Resource Languages},
507
+ author={Kargaran, Amir Hossein and Imani, Ayyoob and Yvon, Fran{\c{c}}ois and Sch{\"u}tze, Hinrich},
508
+ booktitle={The 2023 Conference on Empirical Methods in Natural Language Processing},
509
+ year={2023},
510
+ url={https://openreview.net/forum?id=dl4e3EBz5j}
511
+ }
512
+ ```