Commit
•
5a50de1
0
Parent(s):
Update files from the datasets library (from 1.2.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.2.0
- .gitattributes +27 -0
- README.md +372 -0
- dataset_infos.json +1 -0
- dummy/ar-ko/2.0.0/dummy_data.zip +3 -0
- dummy/de-fr/2.0.0/dummy_data.zip +3 -0
- dummy/en-ja/2.0.0/dummy_data.zip +3 -0
- dummy/es-it/2.0.0/dummy_data.zip +3 -0
- dummy/he-nl/2.0.0/dummy_data.zip +3 -0
- qed_amara.py +120 -0
.gitattributes
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
19 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
20 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
26 |
+
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
27 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,372 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
annotations_creators:
|
3 |
+
- found
|
4 |
+
language_creators:
|
5 |
+
- found
|
6 |
+
languages:
|
7 |
+
- aa
|
8 |
+
- ab
|
9 |
+
- ae
|
10 |
+
- aeb
|
11 |
+
- af
|
12 |
+
- aka
|
13 |
+
- amh
|
14 |
+
- an
|
15 |
+
- ar
|
16 |
+
- arq
|
17 |
+
- arz
|
18 |
+
- as
|
19 |
+
- ase
|
20 |
+
- ast
|
21 |
+
- av
|
22 |
+
- ay
|
23 |
+
- az
|
24 |
+
- ba
|
25 |
+
- bam
|
26 |
+
- be
|
27 |
+
- ber
|
28 |
+
- bg
|
29 |
+
- bh
|
30 |
+
- bi
|
31 |
+
- bn
|
32 |
+
- bnt
|
33 |
+
- bo
|
34 |
+
- br
|
35 |
+
- bs
|
36 |
+
- bug
|
37 |
+
- ca
|
38 |
+
- ce
|
39 |
+
- ceb
|
40 |
+
- ch
|
41 |
+
- cho
|
42 |
+
- cku
|
43 |
+
- cnh
|
44 |
+
- co
|
45 |
+
- cr
|
46 |
+
- cs
|
47 |
+
- cu
|
48 |
+
- cv
|
49 |
+
- cy
|
50 |
+
- da
|
51 |
+
- de
|
52 |
+
- dv
|
53 |
+
- dz
|
54 |
+
- ee
|
55 |
+
- efi
|
56 |
+
- el
|
57 |
+
- en
|
58 |
+
- eo
|
59 |
+
- es
|
60 |
+
- et
|
61 |
+
- eu
|
62 |
+
- fa
|
63 |
+
- ff
|
64 |
+
- fi
|
65 |
+
- fil
|
66 |
+
- fj
|
67 |
+
- fo
|
68 |
+
- fr
|
69 |
+
- ful
|
70 |
+
- ga
|
71 |
+
- gd
|
72 |
+
- gl
|
73 |
+
- gn
|
74 |
+
- gu
|
75 |
+
- hai
|
76 |
+
- hau
|
77 |
+
- haw
|
78 |
+
- haz
|
79 |
+
- hb
|
80 |
+
- hch
|
81 |
+
- he
|
82 |
+
- hi
|
83 |
+
- ho
|
84 |
+
- hr
|
85 |
+
- ht
|
86 |
+
- hu
|
87 |
+
- hup
|
88 |
+
- hus
|
89 |
+
- hy
|
90 |
+
- hz
|
91 |
+
- ia
|
92 |
+
- ibo
|
93 |
+
- id
|
94 |
+
- ie
|
95 |
+
- ik
|
96 |
+
- inh
|
97 |
+
- io
|
98 |
+
- iro
|
99 |
+
- is
|
100 |
+
- it
|
101 |
+
- iu
|
102 |
+
- ja
|
103 |
+
- jv
|
104 |
+
- ka
|
105 |
+
- kar
|
106 |
+
- kau
|
107 |
+
- kik
|
108 |
+
- kin
|
109 |
+
- kj
|
110 |
+
- kk
|
111 |
+
- kl
|
112 |
+
- km
|
113 |
+
- kn
|
114 |
+
- ko
|
115 |
+
- ksh
|
116 |
+
- ku
|
117 |
+
- kv
|
118 |
+
- kw
|
119 |
+
- ky
|
120 |
+
- la
|
121 |
+
- lb
|
122 |
+
- lg
|
123 |
+
- li
|
124 |
+
- lin
|
125 |
+
- lkt
|
126 |
+
- lld
|
127 |
+
- lo
|
128 |
+
- lt
|
129 |
+
- ltg
|
130 |
+
- lu
|
131 |
+
- luo
|
132 |
+
- luy
|
133 |
+
- lv
|
134 |
+
- mad
|
135 |
+
- mfe
|
136 |
+
- mi
|
137 |
+
- mk
|
138 |
+
- ml
|
139 |
+
- mlg
|
140 |
+
- mn
|
141 |
+
- mni
|
142 |
+
- mo
|
143 |
+
- moh
|
144 |
+
- mos
|
145 |
+
- mr
|
146 |
+
- ms
|
147 |
+
- mt
|
148 |
+
- mus
|
149 |
+
- my
|
150 |
+
- nb
|
151 |
+
- nci
|
152 |
+
- nd
|
153 |
+
- ne
|
154 |
+
- nl
|
155 |
+
- nn
|
156 |
+
- nso
|
157 |
+
- nv
|
158 |
+
- nya
|
159 |
+
- oc
|
160 |
+
- or
|
161 |
+
- orm
|
162 |
+
- pam
|
163 |
+
- pan
|
164 |
+
- pap
|
165 |
+
- pi
|
166 |
+
- pl
|
167 |
+
- pnb
|
168 |
+
- prs
|
169 |
+
- ps
|
170 |
+
- pt
|
171 |
+
- que
|
172 |
+
- rm
|
173 |
+
- ro
|
174 |
+
- ru
|
175 |
+
- run
|
176 |
+
- rup
|
177 |
+
- ry
|
178 |
+
- sa
|
179 |
+
- sc
|
180 |
+
- scn
|
181 |
+
- sco
|
182 |
+
- sd
|
183 |
+
- sg
|
184 |
+
- sgn
|
185 |
+
- sh
|
186 |
+
- si
|
187 |
+
- sk
|
188 |
+
- sl
|
189 |
+
- sm
|
190 |
+
- sna
|
191 |
+
- som
|
192 |
+
- sot
|
193 |
+
- sq
|
194 |
+
- sr
|
195 |
+
- srp
|
196 |
+
- sv
|
197 |
+
- swa
|
198 |
+
- szl
|
199 |
+
- ta
|
200 |
+
- te
|
201 |
+
- tet
|
202 |
+
- tg
|
203 |
+
- th
|
204 |
+
- tir
|
205 |
+
- tk
|
206 |
+
- tl
|
207 |
+
- tlh
|
208 |
+
- to
|
209 |
+
- tr
|
210 |
+
- ts
|
211 |
+
- tt
|
212 |
+
- tw
|
213 |
+
- ug
|
214 |
+
- uk
|
215 |
+
- umb
|
216 |
+
- ur
|
217 |
+
- uz
|
218 |
+
- ve
|
219 |
+
- vi
|
220 |
+
- vls
|
221 |
+
- vo
|
222 |
+
- wa
|
223 |
+
- wol
|
224 |
+
- xh
|
225 |
+
- yaq
|
226 |
+
- yi
|
227 |
+
- yor
|
228 |
+
- za
|
229 |
+
- zam
|
230 |
+
- zh
|
231 |
+
- zul
|
232 |
+
licenses:
|
233 |
+
- unknown
|
234 |
+
multilinguality:
|
235 |
+
- multilingual
|
236 |
+
size_categories:
|
237 |
+
- 100K<n<1M
|
238 |
+
source_datasets:
|
239 |
+
- original
|
240 |
+
task_categories:
|
241 |
+
- conditional-text-generation
|
242 |
+
task_ids:
|
243 |
+
- machine-translation
|
244 |
+
---
|
245 |
+
|
246 |
+
# Dataset Card Creation Guide
|
247 |
+
|
248 |
+
## Table of Contents
|
249 |
+
- [Dataset Description](#dataset-description)
|
250 |
+
- [Dataset Summary](#dataset-summary)
|
251 |
+
- [Supported Tasks](#supported-tasks-and-leaderboards)
|
252 |
+
- [Languages](#languages)
|
253 |
+
- [Dataset Structure](#dataset-structure)
|
254 |
+
- [Data Instances](#data-instances)
|
255 |
+
- [Data Fields](#data-instances)
|
256 |
+
- [Data Splits](#data-instances)
|
257 |
+
- [Dataset Creation](#dataset-creation)
|
258 |
+
- [Curation Rationale](#curation-rationale)
|
259 |
+
- [Source Data](#source-data)
|
260 |
+
- [Annotations](#annotations)
|
261 |
+
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
262 |
+
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
263 |
+
- [Social Impact of Dataset](#social-impact-of-dataset)
|
264 |
+
- [Discussion of Biases](#discussion-of-biases)
|
265 |
+
- [Other Known Limitations](#other-known-limitations)
|
266 |
+
- [Additional Information](#additional-information)
|
267 |
+
- [Dataset Curators](#dataset-curators)
|
268 |
+
- [Licensing Information](#licensing-information)
|
269 |
+
- [Citation Information](#citation-information)
|
270 |
+
|
271 |
+
## Dataset Description
|
272 |
+
|
273 |
+
- **Homepage:** http://opus.nlpl.eu/QED.php
|
274 |
+
- **Repository:** None
|
275 |
+
- **Paper:** https://www.aclweb.org/anthology/L14-1675/
|
276 |
+
- **Leaderboard:** [More Information Needed]
|
277 |
+
- **Point of Contact:** [More Information Needed]
|
278 |
+
|
279 |
+
### Dataset Summary
|
280 |
+
|
281 |
+
|
282 |
+
To load a language pair which isn't part of the config, all you need to do is specify the language code as pairs.
|
283 |
+
You can find the valid pairs in Homepage section of Dataset Description: http://opus.nlpl.eu/QED.php
|
284 |
+
E.g.
|
285 |
+
|
286 |
+
`dataset = load_dataset("qed_amara", lang1="cs", lang2="nb")`
|
287 |
+
|
288 |
+
|
289 |
+
### Supported Tasks and Leaderboards
|
290 |
+
|
291 |
+
[More Information Needed]
|
292 |
+
|
293 |
+
### Languages
|
294 |
+
|
295 |
+
[More Information Needed]
|
296 |
+
|
297 |
+
## Dataset Structure
|
298 |
+
|
299 |
+
### Data Instances
|
300 |
+
|
301 |
+
Here are some examples of questions and facts:
|
302 |
+
|
303 |
+
|
304 |
+
### Data Fields
|
305 |
+
|
306 |
+
[More Information Needed]
|
307 |
+
|
308 |
+
### Data Splits
|
309 |
+
|
310 |
+
[More Information Needed]
|
311 |
+
|
312 |
+
## Dataset Creation
|
313 |
+
|
314 |
+
### Curation Rationale
|
315 |
+
|
316 |
+
[More Information Needed]
|
317 |
+
|
318 |
+
### Source Data
|
319 |
+
|
320 |
+
[More Information Needed]
|
321 |
+
|
322 |
+
#### Initial Data Collection and Normalization
|
323 |
+
|
324 |
+
[More Information Needed]
|
325 |
+
|
326 |
+
#### Who are the source language producers?
|
327 |
+
|
328 |
+
[More Information Needed]
|
329 |
+
|
330 |
+
### Annotations
|
331 |
+
|
332 |
+
[More Information Needed]
|
333 |
+
|
334 |
+
#### Annotation process
|
335 |
+
|
336 |
+
[More Information Needed]
|
337 |
+
|
338 |
+
#### Who are the annotators?
|
339 |
+
|
340 |
+
[More Information Needed]
|
341 |
+
|
342 |
+
### Personal and Sensitive Information
|
343 |
+
|
344 |
+
[More Information Needed]
|
345 |
+
|
346 |
+
## Considerations for Using the Data
|
347 |
+
|
348 |
+
### Social Impact of Dataset
|
349 |
+
|
350 |
+
[More Information Needed]
|
351 |
+
|
352 |
+
### Discussion of Biases
|
353 |
+
|
354 |
+
[More Information Needed]
|
355 |
+
|
356 |
+
### Other Known Limitations
|
357 |
+
|
358 |
+
[More Information Needed]
|
359 |
+
|
360 |
+
## Additional Information
|
361 |
+
|
362 |
+
### Dataset Curators
|
363 |
+
|
364 |
+
[More Information Needed]
|
365 |
+
|
366 |
+
### Licensing Information
|
367 |
+
|
368 |
+
[More Information Needed]
|
369 |
+
|
370 |
+
### Citation Information
|
371 |
+
|
372 |
+
[More Information Needed]
|
dataset_infos.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"ar-ko": {"description": "The QCRI Educational Domain Corpus (formerly QCRI AMARA Corpus) is an open multilingual collection of subtitles for educational videos and lectures collaboratively transcribed and translated over the AMARA web-based platform.\nDeveloped by: Qatar Computing Research Institute, Arabic Language Technologies Group\nThe QED Corpus is made public for RESEARCH purpose only.\nThe corpus is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Copyright Qatar Computing Research Institute. All rights reserved.\n225 languages, 9,291 bitexts\ntotal number of files: 271,558\ntotal number of tokens: 371.76M\ntotal number of sentence fragments: 30.93M\n", "citation": "A. Abdelali, F. Guzman, H. Sajjad and S. Vogel, \"The AMARA Corpus: Building parallel language resources for the educational domain\", The Proceedings of the 9th International Conference on Language Resources and Evaluation (LREC'14). Reykjavik, Iceland, 2014. Pp. 1856-1862. Isbn. 978-2-9517408-8-4.\n", "homepage": "http://opus.nlpl.eu/QED.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["ar", "ko"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "qed_amara", "config_name": "ar-ko", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 79605277, "num_examples": 592589, "dataset_name": "qed_amara"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-QED/v2.0a/moses/ar-ko.txt.zip": {"num_bytes": 23410393, "checksum": "4c1cbc25e0a4961bd6b6943581053ba95a7ccb54d999575f7697e817fb0ec633"}}, "download_size": 23410393, "post_processing_size": null, "dataset_size": 79605277, "size_in_bytes": 103015670}, "de-fr": {"description": "The QCRI Educational Domain Corpus (formerly QCRI AMARA Corpus) is an open multilingual collection of subtitles for educational videos and lectures collaboratively transcribed and translated over the AMARA web-based platform.\nDeveloped by: Qatar Computing Research Institute, Arabic Language Technologies Group\nThe QED Corpus is made public for RESEARCH purpose only.\nThe corpus is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Copyright Qatar Computing Research Institute. All rights reserved.\n225 languages, 9,291 bitexts\ntotal number of files: 271,558\ntotal number of tokens: 371.76M\ntotal number of sentence fragments: 30.93M\n", "citation": "A. Abdelali, F. Guzman, H. Sajjad and S. Vogel, \"The AMARA Corpus: Building parallel language resources for the educational domain\", The Proceedings of the 9th International Conference on Language Resources and Evaluation (LREC'14). Reykjavik, Iceland, 2014. Pp. 1856-1862. Isbn. 978-2-9517408-8-4.\n", "homepage": "http://opus.nlpl.eu/QED.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["de", "fr"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "qed_amara", "config_name": "de-fr", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 75861416, "num_examples": 407224, "dataset_name": "qed_amara"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-QED/v2.0a/moses/de-fr.txt.zip": {"num_bytes": 26579871, "checksum": "a8c35d7dae4389fa97f06800011727dbaf010983713d1de6f24e602b80f39180"}}, "download_size": 26579871, "post_processing_size": null, "dataset_size": 75861416, "size_in_bytes": 102441287}, "es-it": {"description": "The QCRI Educational Domain Corpus (formerly QCRI AMARA Corpus) is an open multilingual collection of subtitles for educational videos and lectures collaboratively transcribed and translated over the AMARA web-based platform.\nDeveloped by: Qatar Computing Research Institute, Arabic Language Technologies Group\nThe QED Corpus is made public for RESEARCH purpose only.\nThe corpus is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Copyright Qatar Computing Research Institute. All rights reserved.\n225 languages, 9,291 bitexts\ntotal number of files: 271,558\ntotal number of tokens: 371.76M\ntotal number of sentence fragments: 30.93M\n", "citation": "A. Abdelali, F. Guzman, H. Sajjad and S. Vogel, \"The AMARA Corpus: Building parallel language resources for the educational domain\", The Proceedings of the 9th International Conference on Language Resources and Evaluation (LREC'14). Reykjavik, Iceland, 2014. Pp. 1856-1862. Isbn. 978-2-9517408-8-4.\n", "homepage": "http://opus.nlpl.eu/QED.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["es", "it"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "qed_amara", "config_name": "es-it", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 80650321, "num_examples": 447369, "dataset_name": "qed_amara"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-QED/v2.0a/moses/es-it.txt.zip": {"num_bytes": 28344317, "checksum": "5206c21f5975a7452b88d190b99e902c543ff78af66e4a31ae9f968940ed3d89"}}, "download_size": 28344317, "post_processing_size": null, "dataset_size": 80650321, "size_in_bytes": 108994638}, "en-ja": {"description": "The QCRI Educational Domain Corpus (formerly QCRI AMARA Corpus) is an open multilingual collection of subtitles for educational videos and lectures collaboratively transcribed and translated over the AMARA web-based platform.\nDeveloped by: Qatar Computing Research Institute, Arabic Language Technologies Group\nThe QED Corpus is made public for RESEARCH purpose only.\nThe corpus is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Copyright Qatar Computing Research Institute. All rights reserved.\n225 languages, 9,291 bitexts\ntotal number of files: 271,558\ntotal number of tokens: 371.76M\ntotal number of sentence fragments: 30.93M\n", "citation": "A. Abdelali, F. Guzman, H. Sajjad and S. Vogel, \"The AMARA Corpus: Building parallel language resources for the educational domain\", The Proceedings of the 9th International Conference on Language Resources and Evaluation (LREC'14). Reykjavik, Iceland, 2014. Pp. 1856-1862. Isbn. 978-2-9517408-8-4.\n", "homepage": "http://opus.nlpl.eu/QED.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["en", "ja"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "qed_amara", "config_name": "en-ja", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 86731218, "num_examples": 497531, "dataset_name": "qed_amara"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-QED/v2.0a/moses/en-ja.txt.zip": {"num_bytes": 29836171, "checksum": "9bce5b8a00e93e5753d86307e5554640fd1871e073b7c243f01c7c4806e072dd"}}, "download_size": 29836171, "post_processing_size": null, "dataset_size": 86731218, "size_in_bytes": 116567389}, "he-nl": {"description": "The QCRI Educational Domain Corpus (formerly QCRI AMARA Corpus) is an open multilingual collection of subtitles for educational videos and lectures collaboratively transcribed and translated over the AMARA web-based platform.\nDeveloped by: Qatar Computing Research Institute, Arabic Language Technologies Group\nThe QED Corpus is made public for RESEARCH purpose only.\nThe corpus is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Copyright Qatar Computing Research Institute. All rights reserved.\n225 languages, 9,291 bitexts\ntotal number of files: 271,558\ntotal number of tokens: 371.76M\ntotal number of sentence fragments: 30.93M\n", "citation": "A. Abdelali, F. Guzman, H. Sajjad and S. Vogel, \"The AMARA Corpus: Building parallel language resources for the educational domain\", The Proceedings of the 9th International Conference on Language Resources and Evaluation (LREC'14). Reykjavik, Iceland, 2014. Pp. 1856-1862. Isbn. 978-2-9517408-8-4.\n", "homepage": "http://opus.nlpl.eu/QED.php", "license": "", "features": {"id": {"dtype": "string", "id": null, "_type": "Value"}, "translation": {"languages": ["he", "nl"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "qed_amara", "config_name": "he-nl", "version": {"version_str": "2.0.0", "description": "", "major": 2, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 51448732, "num_examples": 273165, "dataset_name": "qed_amara"}}, "download_checksums": {"https://object.pouta.csc.fi/OPUS-QED/v2.0a/moses/he-nl.txt.zip": {"num_bytes": 16642865, "checksum": "c3ea124856345d4896a58da92c8f72e3c997d96e3ebeb4ed5bd0ce32800f5472"}}, "download_size": 16642865, "post_processing_size": null, "dataset_size": 51448732, "size_in_bytes": 68091597}}
|
dummy/ar-ko/2.0.0/dummy_data.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:264a26c08d8c2822384b3e34048db2253a62f6e37a88e4b6456c10708fcbd195
|
3 |
+
size 1167
|
dummy/de-fr/2.0.0/dummy_data.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ccf3e75f978fea706f497e90546261e5d9bfa0bec415e5aeedfb4bae405577c6
|
3 |
+
size 992
|
dummy/en-ja/2.0.0/dummy_data.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d9985341b62f7cedcd30316929dba5379551cdafe45991f47650137c9d8e9b38
|
3 |
+
size 1410
|
dummy/es-it/2.0.0/dummy_data.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0b625685f92de430114beb04054262ec5112170fbbf4d9b8ea858348c6871664
|
3 |
+
size 1420
|
dummy/he-nl/2.0.0/dummy_data.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e9e399e1ea84496967aed781ad9d7f8e28c2702cf4a489fb47837256925de81a
|
3 |
+
size 1530
|
qed_amara.py
ADDED
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# coding=utf-8
|
2 |
+
# Copyright 2020 HuggingFace Datasets Authors.
|
3 |
+
#
|
4 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5 |
+
# you may not use this file except in compliance with the License.
|
6 |
+
# You may obtain a copy of the License at
|
7 |
+
#
|
8 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9 |
+
#
|
10 |
+
# Unless required by applicable law or agreed to in writing, software
|
11 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
+
# See the License for the specific language governing permissions and
|
14 |
+
# limitations under the License.
|
15 |
+
|
16 |
+
# Lint as: python3
|
17 |
+
import os
|
18 |
+
|
19 |
+
import datasets
|
20 |
+
|
21 |
+
|
22 |
+
_DESCRIPTION = """\
|
23 |
+
The QCRI Educational Domain Corpus (formerly QCRI AMARA Corpus) is an open multilingual collection of subtitles for educational videos and lectures collaboratively transcribed and translated over the AMARA web-based platform.
|
24 |
+
Developed by: Qatar Computing Research Institute, Arabic Language Technologies Group
|
25 |
+
The QED Corpus is made public for RESEARCH purpose only.
|
26 |
+
The corpus is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Copyright Qatar Computing Research Institute. All rights reserved.
|
27 |
+
225 languages, 9,291 bitexts
|
28 |
+
total number of files: 271,558
|
29 |
+
total number of tokens: 371.76M
|
30 |
+
total number of sentence fragments: 30.93M
|
31 |
+
"""
|
32 |
+
_HOMEPAGE_URL = "http://opus.nlpl.eu/QED.php"
|
33 |
+
_CITATION = """\
|
34 |
+
A. Abdelali, F. Guzman, H. Sajjad and S. Vogel, "The AMARA Corpus: Building parallel language resources for the educational domain", The Proceedings of the 9th International Conference on Language Resources and Evaluation (LREC'14). Reykjavik, Iceland, 2014. Pp. 1856-1862. Isbn. 978-2-9517408-8-4.
|
35 |
+
"""
|
36 |
+
|
37 |
+
_VERSION = "2.0.0"
|
38 |
+
_BASE_NAME = "QED.{}.{}"
|
39 |
+
_BASE_URL = "https://object.pouta.csc.fi/OPUS-QED/v2.0a/moses/{}-{}.txt.zip"
|
40 |
+
|
41 |
+
# Please note that only few pairs are shown here. You can use config to generate data for all language pairs
|
42 |
+
_LANGUAGE_PAIRS = [
|
43 |
+
("ar", "ko"),
|
44 |
+
("de", "fr"),
|
45 |
+
("es", "it"),
|
46 |
+
("en", "ja"),
|
47 |
+
("he", "nl"),
|
48 |
+
]
|
49 |
+
|
50 |
+
|
51 |
+
class QEDAmaraConfig(datasets.BuilderConfig):
|
52 |
+
def __init__(self, *args, lang1=None, lang2=None, **kwargs):
|
53 |
+
super().__init__(
|
54 |
+
*args,
|
55 |
+
name=f"{lang1}-{lang2}",
|
56 |
+
**kwargs,
|
57 |
+
)
|
58 |
+
self.lang1 = lang1
|
59 |
+
self.lang2 = lang2
|
60 |
+
|
61 |
+
|
62 |
+
class QEDAmara(datasets.GeneratorBasedBuilder):
|
63 |
+
BUILDER_CONFIGS = [
|
64 |
+
QEDAmaraConfig(
|
65 |
+
lang1=lang1,
|
66 |
+
lang2=lang2,
|
67 |
+
description=f"Translating {lang1} to {lang2} or vice versa",
|
68 |
+
version=datasets.Version(_VERSION),
|
69 |
+
)
|
70 |
+
for lang1, lang2 in _LANGUAGE_PAIRS
|
71 |
+
]
|
72 |
+
BUILDER_CONFIG_CLASS = QEDAmaraConfig
|
73 |
+
|
74 |
+
def _info(self):
|
75 |
+
return datasets.DatasetInfo(
|
76 |
+
description=_DESCRIPTION,
|
77 |
+
features=datasets.Features(
|
78 |
+
{
|
79 |
+
"id": datasets.Value("string"),
|
80 |
+
"translation": datasets.Translation(languages=(self.config.lang1, self.config.lang2)),
|
81 |
+
},
|
82 |
+
),
|
83 |
+
supervised_keys=None,
|
84 |
+
homepage=_HOMEPAGE_URL,
|
85 |
+
citation=_CITATION,
|
86 |
+
)
|
87 |
+
|
88 |
+
def _split_generators(self, dl_manager):
|
89 |
+
def _base_url(lang1, lang2):
|
90 |
+
return _BASE_URL.format(lang1, lang2)
|
91 |
+
|
92 |
+
download_url = _base_url(self.config.lang1, self.config.lang2)
|
93 |
+
path = dl_manager.download_and_extract(download_url)
|
94 |
+
return [
|
95 |
+
datasets.SplitGenerator(
|
96 |
+
name=datasets.Split.TRAIN,
|
97 |
+
gen_kwargs={"datapath": path},
|
98 |
+
)
|
99 |
+
]
|
100 |
+
|
101 |
+
def _generate_examples(self, datapath):
|
102 |
+
l1, l2 = self.config.lang1, self.config.lang2
|
103 |
+
folder = l1 + "-" + l2
|
104 |
+
l1_file = _BASE_NAME.format(folder, l1)
|
105 |
+
l2_file = _BASE_NAME.format(folder, l2)
|
106 |
+
l1_path = os.path.join(datapath, l1_file)
|
107 |
+
l2_path = os.path.join(datapath, l2_file)
|
108 |
+
with open(l1_path, encoding="utf-8") as f1, open(l2_path, encoding="utf-8") as f2:
|
109 |
+
for sentence_counter, (x, y) in enumerate(zip(f1, f2)):
|
110 |
+
x = x.strip()
|
111 |
+
y = y.strip()
|
112 |
+
result = (
|
113 |
+
sentence_counter,
|
114 |
+
{
|
115 |
+
"id": str(sentence_counter),
|
116 |
+
"translation": {l1: x, l2: y},
|
117 |
+
},
|
118 |
+
)
|
119 |
+
sentence_counter += 1
|
120 |
+
yield result
|