leondz commited on
Commit
116b77d
1 Parent(s): 1edb1ad

Update dataset_infos for udhr dataset (#4362)

Browse files

* Update dataset_infos for UDHN/udhr dataset

* Update languages list, Add versioning

* Reset version; remove stage1+2 languages; add licensing and repo information

* bump dummy version

* Fix language tags

* Add citation to dataset card

Co-authored-by: Albert Villanova del Moral <8515462+albertvillanova@users.noreply.github.com>

Commit from https://github.com/huggingface/datasets/commit/8a95aa1af8b4da59048a3fdb86b3cc772c78b434

README.md CHANGED
@@ -21,24 +21,26 @@ languages:
21
  - ame
22
  - ami
23
  - amr
24
- - arb
25
  - arl
26
  - arn
27
  - ast
28
  - auc
29
- - ayr
30
- - azj
 
 
31
  - ban
32
  - bax
33
  - bba
34
  - bci
35
- - bcl
36
  - be
37
  - bem
38
  - bfa
39
  - bg
40
  - bho
41
  - bi
 
42
  - bin
43
  - blt
44
  - bm
@@ -47,6 +49,8 @@ languages:
47
  - boa
48
  - br
49
  - bs
 
 
50
  - buc
51
  - bug
52
  - bum
@@ -70,9 +74,10 @@ languages:
70
  - cjs
71
  - cjy
72
  - ckb
73
- - cmn
74
  - cnh
75
  - cni
 
76
  - co
77
  - cof
78
  - cot
@@ -89,6 +94,8 @@ languages:
89
  - dag
90
  - ddn
91
  - de
 
 
92
  - dga
93
  - dip
94
  - duu
@@ -97,16 +104,19 @@ languages:
97
  - dyu
98
  - dz
99
  - ee
100
- - ekk
101
  - el
102
- - emk
 
103
  - en
104
  - eo
105
  - es
106
  - ese
 
107
  - eu
108
  - eve
109
  - evn
 
 
110
  - fat
111
  - fi
112
  - fj
@@ -115,33 +125,37 @@ languages:
115
  - fon
116
  - fr
117
  - fuf
 
118
  - fur
119
  - fuv
 
120
  - fy
121
  - ga
122
  - gaa
123
  - gag
124
  - gan
125
- - gaz
126
  - gd
127
  - gjn
128
  - gkp
129
  - gl
130
  - gld
 
 
131
  - gu
132
  - guc
133
- - gug
134
  - guu
135
  - gv
136
  - gyr
137
  - ha
138
  - hak
 
 
139
  - haw
140
  - he
141
- - hea
142
  - hi
143
  - hil
144
  - hlt
 
145
  - hms
146
  - hna
147
  - hni
@@ -149,6 +163,7 @@ languages:
149
  - hns
150
  - hr
151
  - hsb
 
152
  - ht
153
  - hu
154
  - hus
@@ -157,47 +172,53 @@ languages:
157
  - ia
158
  - ibb
159
  - id
 
160
  - ig
161
  - ii
162
- - ike
163
  - ilo
164
  - io
165
  - is
166
  - it
 
167
  - ja
168
  - jiv
169
  - jv
 
170
  - ka
 
171
  - kbd
172
  - kbp
173
  - kde
174
  - kdh
175
  - kea
176
  - kek
 
 
177
  - kha
178
- - khk
179
  - kjh
180
  - kk
181
  - kkh
 
182
  - kl
183
  - km
184
  - kmb
185
- - kmr
186
  - kn
187
- - knc
188
- - kng
189
  - ko
190
  - koi
191
  - koo
192
  - kqn
193
  - kqs
 
194
  - kri
195
  - krl
196
  - ktu
 
197
  - kwi
198
  - ky
199
  - la
200
  - lad
 
201
  - lb
202
  - lg
203
  - lia
@@ -214,16 +235,18 @@ languages:
214
  - lue
215
  - lun
216
  - lus
217
- - lvs
218
  - mad
219
  - mag
220
  - mai
221
  - mam
 
222
  - maz
223
  - mcd
224
  - mcf
225
  - men
226
  - mfq
 
227
  - mh
228
  - mi
229
  - mic
@@ -231,7 +254,10 @@ languages:
231
  - miq
232
  - mk
233
  - ml
 
 
234
  - mnw
 
235
  - mos
236
  - mr
237
  - mt
@@ -244,16 +270,17 @@ languages:
244
  - nb
245
  - nba
246
  - nds
 
247
  - ng
248
  - nhn
249
  - nio
250
  - niu
 
251
  - njo
252
  - nku
253
  - nl
254
  - nn
255
  - not
256
- - npi
257
  - nr
258
  - nso
259
  - nv
@@ -265,6 +292,7 @@ languages:
265
  - oc
266
  - ojb
267
  - oki
 
268
  - orh
269
  - os
270
  - ote
@@ -273,27 +301,24 @@ languages:
273
  - pap
274
  - pau
275
  - pbb
276
- - pbu
277
  - pcd
278
  - pcm
279
- - pes
280
  - pis
281
  - piu
282
  - pl
283
- - plt
284
- - pnb
285
  - pon
286
  - pov
287
  - ppl
288
  - prq
289
- - prs
290
  - pt
 
 
291
  - qu
292
  - quc
293
  - qug
294
  - quh
295
  - quy
296
- - quz
297
  - qva
298
  - qvc
299
  - qvh
@@ -306,13 +331,21 @@ languages:
306
  - rgn
307
  - rm
308
  - rmn
 
 
 
 
 
 
309
  - rn
310
  - ro
311
  - ru
312
  - rup
313
  - rw
314
  - sa
 
315
  - sah
 
316
  - sco
317
  - se
318
  - sey
@@ -324,13 +357,15 @@ languages:
324
  - sk
325
  - skr
326
  - sl
 
327
  - sm
328
  - sn
329
  - snk
330
  - snn
331
  - so
332
  - sr
333
- - src
 
334
  - srr
335
  - ss
336
  - st
@@ -338,10 +373,11 @@ languages:
338
  - suk
339
  - sus
340
  - sv
 
341
  - swb
342
- - swh
343
  - ta
344
  - taj
 
345
  - tbz
346
  - tca
347
  - tdt
@@ -353,6 +389,8 @@ languages:
353
  - ti
354
  - tiv
355
  - tk
 
 
356
  - tl
357
  - tly
358
  - tn
@@ -366,24 +404,31 @@ languages:
366
  - ts
367
  - tsz
368
  - tt
369
- - tw
 
370
  - ty
371
  - tyv
372
  - tzh
373
  - tzm
374
  - tzo
 
375
  - ug
 
 
376
  - uk
377
  - umb
378
  - und
379
  - ur
380
  - ura
381
- - uzn
 
 
382
  - vai
383
  - ve
384
  - vec
385
  - vep
386
  - vi
 
387
  - vmw
388
  - wa
389
  - war
@@ -395,19 +440,24 @@ languages:
395
  - yad
396
  - yao
397
  - yap
398
- - ydd
399
  - ykg
400
  - yo
 
401
  - yua
402
  - yue
 
403
  - zam
404
  - zdj
405
  - zgh
 
 
406
  - zlm
 
 
407
  - zro
408
  - ztu
409
  - zu
410
- - zyb
411
  licenses:
412
  - unknown
413
  multilinguality:
@@ -452,7 +502,7 @@ pretty_name: The Universal Declaration of Human Rights (UDHR)
452
  ## Dataset Description
453
 
454
  - **Homepage:** https://www.ohchr.org/EN/UDHR/Pages/UDHRIndex.aspx, https://unicode.org/udhr/index.html
455
- - **Repository:**
456
  - **Paper:**
457
  - **Leaderboard:**
458
  - **Point of Contact:**
@@ -474,7 +524,7 @@ This plain text version prepared by the “UDHR in Unicode” project, https://w
474
 
475
  ### Languages
476
 
477
- The dataset includes translations of the document in 467 languages and dialects. The list of languages can be found
478
  [here](https://unicode.org/udhr/translations.html).
479
 
480
  ## Dataset Structure
@@ -555,14 +605,15 @@ The txt/xml data files used here were compiled by The Unicode Consortium, which
555
 
556
  ### Licensing Information
557
 
558
- © 1996 – 2009 The Office of the High Commissioner for Human Rights
 
 
559
 
560
- [More Information Needed]
561
 
562
  ### Citation Information
563
 
564
- [More Information Needed]
565
 
566
  ### Contributions
567
 
568
- Thanks to [@joeddav](https://github.com/joeddav) for adding this dataset.
 
21
  - ame
22
  - ami
23
  - amr
24
+ - ar
25
  - arl
26
  - arn
27
  - ast
28
  - auc
29
+ - ay
30
+ - az
31
+ - az-Cyrl
32
+ - az-Latn
33
  - ban
34
  - bax
35
  - bba
36
  - bci
 
37
  - be
38
  - bem
39
  - bfa
40
  - bg
41
  - bho
42
  - bi
43
+ - bik
44
  - bin
45
  - blt
46
  - bm
 
49
  - boa
50
  - br
51
  - bs
52
+ - bs-Cyrl
53
+ - bs-Latn
54
  - buc
55
  - bug
56
  - bum
 
74
  - cjs
75
  - cjy
76
  - ckb
77
+ - ckb-Latn
78
  - cnh
79
  - cni
80
+ - cnr
81
  - co
82
  - cof
83
  - cot
 
94
  - dag
95
  - ddn
96
  - de
97
+ - de-1901
98
+ - de-1996
99
  - dga
100
  - dip
101
  - duu
 
104
  - dyu
105
  - dz
106
  - ee
 
107
  - el
108
+ - el-monoton
109
+ - el-polyton
110
  - en
111
  - eo
112
  - es
113
  - ese
114
+ - et
115
  - eu
116
  - eve
117
  - evn
118
+ - fa
119
+ - fa-AF
120
  - fat
121
  - fi
122
  - fj
 
125
  - fon
126
  - fr
127
  - fuf
128
+ - fuf-Adlm
129
  - fur
130
  - fuv
131
+ - fvr
132
  - fy
133
  - ga
134
  - gaa
135
  - gag
136
  - gan
 
137
  - gd
138
  - gjn
139
  - gkp
140
  - gl
141
  - gld
142
+ - gn
143
+ - gsw
144
  - gu
145
  - guc
 
146
  - guu
147
  - gv
148
  - gyr
149
  - ha
150
  - hak
151
+ - ha-NE
152
+ - ha-NG
153
  - haw
154
  - he
 
155
  - hi
156
  - hil
157
  - hlt
158
+ - hmn
159
  - hms
160
  - hna
161
  - hni
 
163
  - hns
164
  - hr
165
  - hsb
166
+ - hsn
167
  - ht
168
  - hu
169
  - hus
 
172
  - ia
173
  - ibb
174
  - id
175
+ - idu
176
  - ig
177
  - ii
178
+ - ijs
179
  - ilo
180
  - io
181
  - is
182
  - it
183
+ - iu
184
  - ja
185
  - jiv
186
  - jv
187
+ - jv-Java
188
  - ka
189
+ - kaa
190
  - kbd
191
  - kbp
192
  - kde
193
  - kdh
194
  - kea
195
  - kek
196
+ - kg
197
+ - kg-AO
198
  - kha
 
199
  - kjh
200
  - kk
201
  - kkh
202
+ - kkh-Lana
203
  - kl
204
  - km
205
  - kmb
 
206
  - kn
 
 
207
  - ko
208
  - koi
209
  - koo
210
  - kqn
211
  - kqs
212
+ - kr
213
  - kri
214
  - krl
215
  - ktu
216
+ - ku
217
  - kwi
218
  - ky
219
  - la
220
  - lad
221
+ - lah
222
  - lb
223
  - lg
224
  - lia
 
235
  - lue
236
  - lun
237
  - lus
238
+ - lv
239
  - mad
240
  - mag
241
  - mai
242
  - mam
243
+ - man
244
  - maz
245
  - mcd
246
  - mcf
247
  - men
248
  - mfq
249
+ - mg
250
  - mh
251
  - mi
252
  - mic
 
254
  - miq
255
  - mk
256
  - ml
257
+ - mn
258
+ - mn-Cyrl
259
  - mnw
260
+ - mor
261
  - mos
262
  - mr
263
  - mt
 
270
  - nb
271
  - nba
272
  - nds
273
+ - ne
274
  - ng
275
  - nhn
276
  - nio
277
  - niu
278
+ - niv
279
  - njo
280
  - nku
281
  - nl
282
  - nn
283
  - not
 
284
  - nr
285
  - nso
286
  - nv
 
292
  - oc
293
  - ojb
294
  - oki
295
+ - om
296
  - orh
297
  - os
298
  - ote
 
301
  - pap
302
  - pau
303
  - pbb
 
304
  - pcd
305
  - pcm
 
306
  - pis
307
  - piu
308
  - pl
 
 
309
  - pon
310
  - pov
311
  - ppl
312
  - prq
313
+ - ps
314
  - pt
315
+ - pt-BR
316
+ - pt-PT
317
  - qu
318
  - quc
319
  - qug
320
  - quh
321
  - quy
 
322
  - qva
323
  - qvc
324
  - qvh
 
331
  - rgn
332
  - rm
333
  - rmn
334
+ - rm-puter
335
+ - rm-rumgr
336
+ - rm-surmiran
337
+ - rm-sursilv
338
+ - rm-sutsilv
339
+ - rm-vallader
340
  - rn
341
  - ro
342
  - ru
343
  - rup
344
  - rw
345
  - sa
346
+ - sa-Gran
347
  - sah
348
+ - sc
349
  - sco
350
  - se
351
  - sey
 
357
  - sk
358
  - skr
359
  - sl
360
+ - slr
361
  - sm
362
  - sn
363
  - snk
364
  - snn
365
  - so
366
  - sr
367
+ - sr-Cyrl
368
+ - sr-Latn
369
  - srr
370
  - ss
371
  - st
 
373
  - suk
374
  - sus
375
  - sv
376
+ - sw
377
  - swb
 
378
  - ta
379
  - taj
380
+ - ta-LK
381
  - tbz
382
  - tca
383
  - tdt
 
389
  - ti
390
  - tiv
391
  - tk
392
+ - tk-Cyrl
393
+ - tk-Latn
394
  - tl
395
  - tly
396
  - tn
 
404
  - ts
405
  - tsz
406
  - tt
407
+ - tw-akuapem
408
+ - tw-asante
409
  - ty
410
  - tyv
411
  - tzh
412
  - tzm
413
  - tzo
414
+ - udu
415
  - ug
416
+ - ug-Arab
417
+ - ug-Latn
418
  - uk
419
  - umb
420
  - und
421
  - ur
422
  - ura
423
+ - uz
424
+ - uz-Cyrl
425
+ - uz-Latn
426
  - vai
427
  - ve
428
  - vec
429
  - vep
430
  - vi
431
+ - vi-Hani
432
  - vmw
433
  - wa
434
  - war
 
440
  - yad
441
  - yao
442
  - yap
443
+ - yi
444
  - ykg
445
  - yo
446
+ - yrk
447
  - yua
448
  - yue
449
+ - za
450
  - zam
451
  - zdj
452
  - zgh
453
+ - zh
454
+ - zh-Hant
455
  - zlm
456
+ - zlm-Arab
457
+ - zlm-Latn
458
  - zro
459
  - ztu
460
  - zu
 
461
  licenses:
462
  - unknown
463
  multilinguality:
 
502
  ## Dataset Description
503
 
504
  - **Homepage:** https://www.ohchr.org/EN/UDHR/Pages/UDHRIndex.aspx, https://unicode.org/udhr/index.html
505
+ - **Repository:** https://github.com/unicode-org/udhr
506
  - **Paper:**
507
  - **Leaderboard:**
508
  - **Point of Contact:**
 
524
 
525
  ### Languages
526
 
527
+ The dataset includes translations of the document in over 400 languages and dialects. The list of languages can be found
528
  [here](https://unicode.org/udhr/translations.html).
529
 
530
  ## Dataset Structure
 
605
 
606
  ### Licensing Information
607
 
608
+ Source text © 1996 – 2022 The Office of the High Commissioner for Human Rights
609
+
610
+ The [Unicode license](https://www.unicode.org/license.txt) applies to these translations.
611
 
 
612
 
613
  ### Citation Information
614
 
615
+ United Nations. (1998). The Universal Declaration of Human Rights, 1948-1998. New York: United Nations Dept. of Public Information.
616
 
617
  ### Contributions
618
 
619
+ Thanks to [@joeddav](https://github.com/joeddav) for adding this dataset. Updated May 2022 [@leondz](https://github.com/leondz).
dataset_infos.json CHANGED
@@ -1 +1 @@
1
- {"default": {"description": "The Universal Declaration of Human Rights (UDHR) is a milestone document in the history of human rights. Drafted by\nrepresentatives with different legal and cultural backgrounds from all regions of the world, it set out, for the\nfirst time, fundamental human rights to be universally protected. The Declaration was adopted by the UN General\nAssembly in Paris on 10 December 1948 during its 183rd plenary meeting. The dataset includes translations of the\ndocument in 464 languages and dialects.\n\n\u00a9 1996 \u2013 2009 The Office of the High Commissioner for Human Rights\n\nThis plain text version prepared by the \u201cUDHR in Unicode\u201d project, https://www.unicode.org/udhr.\n", "citation": "", "homepage": "https://www.ohchr.org/EN/UDHR/Pages/UDHRIndex.aspx", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "lang_key": {"dtype": "string", "id": null, "_type": "Value"}, "lang_name": {"dtype": "string", "id": null, "_type": "Value"}, "iso639-3": {"dtype": "string", "id": null, "_type": "Value"}, "iso15924": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "udhn", "config_name": "default", "version": {"version_str": "0.0.0", "description": null, "major": 0, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 6453404, "num_examples": 464, "dataset_name": "udhn"}}, "download_checksums": {"https://unicode.org/udhr/assemblies/udhr_xml.zip": {"num_bytes": 2273633, "checksum": "0565fa62c2ff155b84123198bcc967edd8c5eb9679eadc01e6fb44a5cf730fee"}, "https://unicode.org/udhr/assemblies/udhr_txt.zip": {"num_bytes": 2107471, "checksum": "087b474a070dd4096ae3028f9ee0b30dcdcb030cc85a1ca02e143be46327e5e5"}}, "download_size": 4381104, "post_processing_size": null, "dataset_size": 6453404, "size_in_bytes": 10834508}}
 
1
+ {"default": {"description": "The Universal Declaration of Human Rights (UDHR) is a milestone document in the history of human rights. Drafted by\nrepresentatives with different legal and cultural backgrounds from all regions of the world, it set out, for the\nfirst time, fundamental human rights to be universally protected. The Declaration was adopted by the UN General\nAssembly in Paris on 10 December 1948 during its 183rd plenary meeting. The dataset includes translations of the\ndocument in 464 languages and dialects.\n\n\u00a9 1996 \u2013 2009 The Office of the High Commissioner for Human Rights\n\nThis plain text version prepared by the \u201cUDHR in Unicode\u201d project, https://www.unicode.org/udhr.\n", "citation": "", "homepage": "https://www.ohchr.org/EN/UDHR/Pages/UDHRIndex.aspx", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}, "lang_key": {"dtype": "string", "id": null, "_type": "Value"}, "lang_name": {"dtype": "string", "id": null, "_type": "Value"}, "iso639-3": {"dtype": "string", "id": null, "_type": "Value"}, "iso15924": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "udhn", "config_name": "default", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 6749909, "num_examples": 488, "dataset_name": "udhn"}}, "download_checksums": {"https://unicode.org/udhr/assemblies/udhr_xml.zip": {"num_bytes": 2389690, "checksum": "a3350912790196c6e1b26bfd1c8a50e8575f5cf185922ecd9bd15713d7d21438"}, "https://unicode.org/udhr/assemblies/udhr_txt.zip": {"num_bytes": 2215441, "checksum": "cb87ecb25b56f34e4fd6f22b323000524fd9c06ae2a29f122b048789cf17e9fe"}}, "download_size": 4605131, "post_processing_size": null, "dataset_size": 6749909, "size_in_bytes": 11355040}}
dummy/{0.0.0 → 1.0.0}/dummy_data.zip RENAMED
File without changes
udhr.py CHANGED
@@ -29,7 +29,7 @@ The Universal Declaration of Human Rights (UDHR) is a milestone document in the
29
  representatives with different legal and cultural backgrounds from all regions of the world, it set out, for the
30
  first time, fundamental human rights to be universally protected. The Declaration was adopted by the UN General
31
  Assembly in Paris on 10 December 1948 during its 183rd plenary meeting. The dataset includes translations of the
32
- document in 464 languages and dialects.
33
 
34
  © 1996 – 2009 The Office of the High Commissioner for Human Rights
35
 
@@ -46,6 +46,8 @@ _TXT_DOWNLOAD_URL = "https://unicode.org/udhr/assemblies/udhr_txt.zip"
46
  class UDHN(datasets.GeneratorBasedBuilder):
47
  """Universal Declaration of Human Rights"""
48
 
 
 
49
  def _info(self):
50
  return datasets.DatasetInfo(
51
  description=_DESCRIPTION,
 
29
  representatives with different legal and cultural backgrounds from all regions of the world, it set out, for the
30
  first time, fundamental human rights to be universally protected. The Declaration was adopted by the UN General
31
  Assembly in Paris on 10 December 1948 during its 183rd plenary meeting. The dataset includes translations of the
32
+ document in 464+ languages and dialects.
33
 
34
  © 1996 – 2009 The Office of the High Commissioner for Human Rights
35
 
 
46
  class UDHN(datasets.GeneratorBasedBuilder):
47
  """Universal Declaration of Human Rights"""
48
 
49
+ VERSION = datasets.Version("1.0.0")
50
+
51
  def _info(self):
52
  return datasets.DatasetInfo(
53
  description=_DESCRIPTION,