koki commited on
Commit
b3f4772
1 Parent(s): 0387f4c

Fix opus_gnome dataset card (#4806)

Browse files

* fix gnome -> opus_gnome

* removed 'ara', 'cat', 'foo', 'gr', 'nqo', 'tmp'

* fixe Dataset # Card Creation Guide -> # Dataset Card for Opus Gnome

* add ara cat gr nqo

* rm foo tmp

* add Data Fields and Data Splits

* add Data Splits

* rm }

* Update src/datasets/utils/resources/languages.json

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

* Update src/datasets/utils/resources/languages.json

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

* Update src/datasets/utils/resources/languages.json

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

* rm ara cat gr tmp add tyj

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

Commit from https://github.com/huggingface/datasets/commit/cdf268b5a34150cdae1764d3059f1d392aa71148

Files changed (1) hide show
  1. README.md +30 -13
README.md CHANGED
@@ -9,7 +9,6 @@ language:
9
  - an
10
  - ang
11
  - ar
12
- - ara
13
  - as
14
  - ast
15
  - az
@@ -23,7 +22,6 @@ language:
23
  - brx
24
  - bs
25
  - ca
26
- - cat
27
  - crh
28
  - cs
29
  - csb
@@ -41,7 +39,6 @@ language:
41
  - fa
42
  - fi
43
  - fo
44
- - foo
45
  - fr
46
  - fur
47
  - fy
@@ -49,7 +46,6 @@ language:
49
  - gd
50
  - gl
51
  - gn
52
- - gr
53
  - gu
54
  - gv
55
  - ha
@@ -130,10 +126,10 @@ language:
130
  - th
131
  - tk
132
  - tl
133
- - tmp
134
  - tr
135
  - ts
136
  - tt
 
137
  - ug
138
  - uk
139
  - ur
@@ -221,7 +217,7 @@ configs:
221
  - en_GB-my
222
  ---
223
 
224
- # Dataset Card Creation Guide
225
 
226
  ## Table of Contents
227
  - [Dataset Description](#dataset-description)
@@ -262,7 +258,7 @@ To load a language pair which isn't part of the config, all you need to do is sp
262
  You can find the valid pairs in Homepage section of Dataset Description: http://opus.nlpl.eu/GNOME.php
263
  E.g.
264
 
265
- `dataset = load_dataset("gnome", lang1="it", lang2="pl")`
266
 
267
 
268
  ### Supported Tasks and Leaderboards
@@ -275,17 +271,38 @@ E.g.
275
 
276
  ## Dataset Structure
277
 
278
- ### Data Instances
279
-
280
- [More Information Needed]
281
-
 
 
 
 
 
 
282
  ### Data Fields
283
 
284
- [More Information Needed]
 
 
285
 
286
  ### Data Splits
287
 
288
- [More Information Needed]
 
 
 
 
 
 
 
 
 
 
 
 
 
289
 
290
  ## Dataset Creation
291
 
9
  - an
10
  - ang
11
  - ar
 
12
  - as
13
  - ast
14
  - az
22
  - brx
23
  - bs
24
  - ca
 
25
  - crh
26
  - cs
27
  - csb
39
  - fa
40
  - fi
41
  - fo
 
42
  - fr
43
  - fur
44
  - fy
46
  - gd
47
  - gl
48
  - gn
 
49
  - gu
50
  - gv
51
  - ha
126
  - th
127
  - tk
128
  - tl
 
129
  - tr
130
  - ts
131
  - tt
132
+ - tyj
133
  - ug
134
  - uk
135
  - ur
217
  - en_GB-my
218
  ---
219
 
220
+ # Dataset Card for Opus Gnome
221
 
222
  ## Table of Contents
223
  - [Dataset Description](#dataset-description)
258
  You can find the valid pairs in Homepage section of Dataset Description: http://opus.nlpl.eu/GNOME.php
259
  E.g.
260
 
261
+ `dataset = load_dataset("opus_gnome", lang1="it", lang2="pl")`
262
 
263
 
264
  ### Supported Tasks and Leaderboards
271
 
272
  ## Dataset Structure
273
 
274
+ ### Data Instances
275
+ ```
276
+ {
277
+ 'id': '0',
278
+ 'translation': {
279
+ 'ar': 'إعداد سياسة القفل',
280
+ 'bal': 'تنظیم کتن سیاست کبل'
281
+ }
282
+ }
283
+ ```
284
  ### Data Fields
285
 
286
+ Each instance has two fields:
287
+ - **id**: the id of the example
288
+ - **translation**: a dictionary containing translated texts in two languages.
289
 
290
  ### Data Splits
291
 
292
+ Each subset simply consists in a train set. We provide the number of examples for certain language pairs:
293
+
294
+ | | train |
295
+ |:---------|--------:|
296
+ | ar-bal | 60 |
297
+ | bg-csb | 10 |
298
+ | ca-en_GB | 7982 |
299
+ | cs-eo | 73 |
300
+ | de-ha | 216 |
301
+ | cs-tk | 18686 |
302
+ | da-vi | 149 |
303
+ | en_GB-my | 28232 |
304
+ | el-sk | 150 |
305
+ | de-tt | 2169 |
306
 
307
  ## Dataset Creation
308