Datasets:
File size: 6,447 Bytes
10af8dd 344fad0 e98d9c1 344fad0 10af8dd 344fad0 335ae5b 344fad0 d13a909 344fad0 84f904d 344fad0 7e91f8e 344fad0 aa52b57 344fad0 48b7d2d 121948d 344fad0 48b7d2d 344fad0 48b7d2d 344fad0 |
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 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 |
---
license: cc0-1.0
configs:
- config_name: default
data_files:
- split: test
path: "udhr-lid.csv"
multilinguality:
- multilingual
language:
- tir
- rmn
- arb
- mxv
- mal
- fij
- som
- cot
- fur
- vie
- zlm
- bam
- chr
- maz
- yad
- ztu
- ykg
- ccp
- alt
- ayr
- njo
- bci
- gyr
- run
- haw
- rgn
- cak
- kwi
- fra
- agr
- duu
- ilo
- nhn
- kdh
- cnh
- bod
- mya
- ady
- pol
- ydd
- cos
- lot
- arl
- glv
- gag
- bfa
- afr
- lij
- zlm
- ibb
- toi
- tzm
- ron
- ojb
- san
- eng
- bum
- pam
- kqs
- dje
- auc
- smo
- por
- fry
- lad
- pov
- tyv
- guc
- huu
- ese
- kbp
- eve
- yrk
- lin
- tdt
- qvc
- top
- nav
- twi
- oss
- lia
- ame
- hun
- lit
- que
- qug
- nku
- csa
- lao
- knc
- kjh
- jav
- mam
- ita
- ppl
- aar
- tbz
- ssw
- bug
- srp
- kaz
- min
- mad
- orh
- tgk
- kat
- uig
- tzo
- hat
- shn
- kbd
- niv
- idu
- krl
- abk
- mto
- gla
- ijs
- cri
- uzn
- tah
- tob
- kir
- quy
- hnj
- srr
- lvs
- nan
- hns
- snk
- swh
- ekk
- guu
- div
- dzo
- spa
- hms
- ell
- ace
- war
- ind
- cjy
- cfm
- nds
- ewe
- tel
- src
- fuf
- vmw
- zro
- men
- kqn
- nzi
- taj
- khk
- ddn
- nso
- mxi
- pon
- fvr
- hau
- ktu
- tem
- yor
- pnb
- ltz
- evn
- cjs
- nba
- niu
- dan
- acu
- zgh
- chj
- heb
- lua
- quz
- uig
- cbi
- jav
- cpu
- wuu
- mah
- kmb
- mcd
- ben
- lus
- ajg
- azj
- tha
- dga
- isl
- sus
- fuf
- fkv
- jiv
- mor
- nio
- als
- buc
- kde
- nbl
- ceb
- ven
- sun
- cbt
- swb
- tur
- dyo
- sin
- pbu
- ada
- pap
- qvh
- loz
- pan
- qva
- sme
- bax
- tuk
- hsb
- hus
- qvn
- ban
- cha
- zyb
- hin
- tat
- uzn
- qxu
- gej
- quc
- mnw
- bho
- udu
- kha
- kbr
- tsz
- pau
- mkd
- shp
- ike
- lue
- tgl
- yap
- yua
- koi
- hrv
- emk
- tet
- ndo
- cbu
- vep
- cmn
- sag
- nym
- rus
- gjn
- guk
- kri
- ote
- lun
- vai
- bis
- arn
- tsn
- gle
- hak
- gkp
- ura
- tca
- xho
- wln
- amc
- mos
- lld
- bul
- qxn
- bcl
- ctd
- dip
- dag
- kek
- bre
- mri
- fin
- sah
- cym
- kan
- fao
- gsw
- sey
- bem
- bos
- bin
- chv
- tpi
- ami
- oaa
- lob
- ast
- nno
- sco
- tuk
- khm
- pes
- pbb
- tam
- ibo
- san
- sid
- plt
- guj
- hsn
- kin
- lug
- slr
- koo
- xsm
- jpn
- oki
- deu
- rar
- pcm
- hni
- vec
- gld
- sot
- crs
- fuv
- srp
- npi
- nya
- kea
- blt
- roh
- cbr
- chk
- kal
- mfq
- quh
- kor
- slv
- cof
- shk
- zul
- qwh
- fon
- mic
- prs
- mag
- bel
- iii
- mar
- dyu
- boa
- swe
- pis
- mlt
- amh
- umb
- cnr
- mai
- toj
- csw
- ina
- bba
- cbs
- kng
- oci
- pcd
- miq
- lat
- qvm
- wwa
- bos
- urd
- kmr
- ido
- gaa
- epo
- gaz
- cat
- hye
- cni
- suk
- gug
- gan
- cjk
- tzh
- zam
- ces
- cic
- mcf
- not
- kaa
- tso
- piu
- fat
- mzi
- snn
- tly
- eus
- nld
- nob
- wol
- hlt
- sna
- tiv
- ton
- hea
- skr
- lns
- rup
- cab
- glg
- tgl
- yao
- nyn
- aii
- tzm
- slk
- ukr
- kkh
- zdj
- amr
- yue
- crh
- hil
tags:
- UDHR
- udhr
- language identification
- LID
- glot
- GlotLID
pretty_name: UDHR-LID
---
# UDHR-LID
**Why UDHR-LID?**
You can access UDHR (Universal Declaration of Human Rights) [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.
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 (at least in the text language identification task). We also deleted files that we believe those scripts are no longer in use.
The deleted files include:
- ckb_Latn (Arabic is in use.)
- azb_Latn (Arabic is in use.)
- khk_Mong (Cyrillic is in use, but the other varieties of Mongolian language in Inner Mongolia use the Mongolian writing system.),
- vie_Hani (Latin is in use.)
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.
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.
We created this corpus for language identification evaluation task in our GlotLID [paper](https://arxiv.org/abs/2310.16248), 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!
Recent changes:
- Based on a trusted suggestion, we have changed "tzm_Latn" to "kab_Latn".
## Usage (HF Loader)
```python
from datasets import load_dataset
dataset = load_dataset('cis-lmu/udhr-lid', split='test')
print(dataset[0]) # First row of udhr-lid
```
## Download
If you are not a fan of the HF dataloader, download each language directly:
```python
! wget https://huggingface.co/datasets/cis-lmu/udhr-lid/resolve/main/udhr-lid.csv
```
or clone the whole repository:
```python
! git clone https://huggingface.co/datasets/cis-lmu/udhr-lid
```
## License
UDHR is the most translated copyright-free document in the world.
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).
## Citation
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.
```
@inproceedings{
kargaran2023glotlid,
title={{GlotLID}: Language Identification for Low-Resource Languages},
author={Kargaran, Amir Hossein and Imani, Ayyoob and Yvon, Fran{\c{c}}ois and Sch{\"u}tze, Hinrich},
booktitle={The 2023 Conference on Empirical Methods in Natural Language Processing},
year={2023},
url={https://openreview.net/forum?id=dl4e3EBz5j}
}
```
|