albertvillanova HF staff commited on
Commit
67b2497
1 Parent(s): 609af7a

Fix loading example in opus dataset cards (#4813)

Browse files

* Fix loading example in opus dataset cards

* Fix dataset cards

Commit from https://github.com/huggingface/datasets/commit/18287ed524ac79f538abf77183f906e91d0de3de

Files changed (1) hide show
  1. README.md +67 -9
README.md CHANGED
@@ -72,7 +72,7 @@ configs:
72
  - fr-nl
73
  ---
74
 
75
- # Dataset Card Creation Guide
76
 
77
  ## Table of Contents
78
  - [Dataset Description](#dataset-description)
@@ -108,11 +108,18 @@ configs:
108
 
109
  ### Dataset Summary
110
 
111
- To load a language pair which isn't part of the config, all you need to do is specify the language code as pairs.
112
- You can find the valid pairs in Homepage section of Dataset Description: http://opus.nlpl.eu/ParaCrawl.php
113
- E.g.
114
 
115
- `dataset = load_dataset("paracrawl", lang1="en", lang2="so")`
 
 
 
 
 
 
 
116
 
117
  ### Supported Tasks and Leaderboards
118
 
@@ -120,21 +127,70 @@ E.g.
120
 
121
  ### Languages
122
 
123
- [More Information Needed]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
 
125
  ## Dataset Structure
126
 
127
  ### Data Instances
128
 
129
- [More Information Needed]
 
 
 
 
 
 
 
 
130
 
131
  ### Data Fields
132
 
133
- [More Information Needed]
 
134
 
135
  ### Data Splits
136
 
137
- [More Information Needed]
138
 
139
  ## Dataset Creation
140
 
@@ -196,6 +252,7 @@ E.g.
196
 
197
  ### Citation Information
198
 
 
199
  @InProceedings{TIEDEMANN12.463,
200
  author = {J{\"o}rg Tiedemann},
201
  title = {Parallel Data, Tools and Interfaces in OPUS},
@@ -209,6 +266,7 @@ publisher = {European Language Resources Association (ELRA)},
209
  isbn = {978-2-9517408-7-7},
210
  language = {english}
211
  }
 
212
 
213
  ### Contributions
214
 
72
  - fr-nl
73
  ---
74
 
75
+ # Dataset Card for OpusParaCrawl
76
 
77
  ## Table of Contents
78
  - [Dataset Description](#dataset-description)
108
 
109
  ### Dataset Summary
110
 
111
+ Parallel corpora from Web Crawls collected in the ParaCrawl project.
112
+
113
+ Tha dataset contains 40 languages and 41 bitexts.
114
 
115
+ To load a language pair which isn't part of the config, all you need to do is specify the language code as pairs,
116
+ e.g.
117
+
118
+ ```python
119
+ dataset = load_dataset("opus_paracrawl", lang1="en", lang2="so")
120
+ ```
121
+
122
+ You can find the valid pairs in Homepage section of Dataset Description: http://opus.nlpl.eu/ParaCrawl.php
123
 
124
  ### Supported Tasks and Leaderboards
125
 
127
 
128
  ### Languages
129
 
130
+ The languages in the dataset are:
131
+ - bg
132
+ - ca
133
+ - cs
134
+ - da
135
+ - de
136
+ - el
137
+ - en
138
+ - es
139
+ - et
140
+ - eu
141
+ - fi
142
+ - fr
143
+ - ga
144
+ - gl
145
+ - ha
146
+ - hr
147
+ - hu
148
+ - ig
149
+ - is
150
+ - it
151
+ - km
152
+ - lt
153
+ - lv
154
+ - mt
155
+ - my
156
+ - nb
157
+ - ne
158
+ - nl
159
+ - nn
160
+ - pl
161
+ - pt
162
+ - ro
163
+ - ru
164
+ - si
165
+ - sk
166
+ - sl
167
+ - so
168
+ - sv
169
+ - sw
170
+ - tl
171
 
172
  ## Dataset Structure
173
 
174
  ### Data Instances
175
 
176
+ ```
177
+ {
178
+ 'id': '0',
179
+ 'translation': {
180
+ "el": "Συνεχίστε ευθεία 300 μέτρα μέχρι να καταλήξουμε σε μια σωστή οδός (ul. Gagarina)? Περπατήστε περίπου 300 μέτρα μέχρι να φτάσετε το πρώτο ορθή οδός (ul Khotsa Namsaraeva)?",
181
+ "en": "Go straight 300 meters until you come to a proper street (ul. Gagarina); Walk approximately 300 meters until you reach the first proper street (ul Khotsa Namsaraeva);"
182
+ }
183
+ }
184
+ ```
185
 
186
  ### Data Fields
187
 
188
+ - `id` (`str`): Unique identifier of the parallel sentence for the pair of languages.
189
+ - `translation` (`dict`): Parallel sentences for the pair of languages.
190
 
191
  ### Data Splits
192
 
193
+ The dataset contains a single `train` split.
194
 
195
  ## Dataset Creation
196
 
252
 
253
  ### Citation Information
254
 
255
+ ```bibtex
256
  @InProceedings{TIEDEMANN12.463,
257
  author = {J{\"o}rg Tiedemann},
258
  title = {Parallel Data, Tools and Interfaces in OPUS},
266
  isbn = {978-2-9517408-7-7},
267
  language = {english}
268
  }
269
+ ```
270
 
271
  ### Contributions
272