Datasets:

License:
system HF staff commited on
Commit
c53e100
0 Parent(s):

Update files from the datasets library (from 1.3.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.3.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,347 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - expert-generated
4
+ language_creators:
5
+ - crowdsourced
6
+ - expert-generated
7
+ languages:
8
+ - mr
9
+ - eu
10
+ - hr
11
+ - rup
12
+ - szl
13
+ - lo
14
+ - ms
15
+ - ht
16
+ - hy
17
+ - mg
18
+ - arq
19
+ - uk
20
+ - ku
21
+ - ig
22
+ - sr
23
+ - ug
24
+ - ne
25
+ - pt-br
26
+ - sq
27
+ - af
28
+ - km
29
+ - en
30
+ - tt
31
+ - ja
32
+ - inh
33
+ - mn
34
+ - eo
35
+ - ka
36
+ - nb
37
+ - fil
38
+ - uz
39
+ - fi
40
+ - tl
41
+ - el
42
+ - tg
43
+ - bn
44
+ - si
45
+ - gu
46
+ - sk
47
+ - kn
48
+ - ar
49
+ - hup
50
+ - zh-tw
51
+ - sl
52
+ - be
53
+ - bo
54
+ - fr
55
+ - ps
56
+ - tr
57
+ - ltg
58
+ - la
59
+ - ko
60
+ - lv
61
+ - nl
62
+ - fa
63
+ - ru
64
+ - et
65
+ - vi
66
+ - pa
67
+ - my
68
+ - sw
69
+ - az
70
+ - sv
71
+ - ga
72
+ - sh
73
+ - it
74
+ - da
75
+ - lt
76
+ - kk
77
+ - mk
78
+ - tlh
79
+ - he
80
+ - ceb
81
+ - bg
82
+ - fr-ca
83
+ - ha
84
+ - ml
85
+ - mt
86
+ - as
87
+ - pt
88
+ - zh-cn
89
+ - cnh
90
+ - ro
91
+ - hi
92
+ - es
93
+ - id
94
+ - bs
95
+ - so
96
+ - cs
97
+ - te
98
+ - ky
99
+ - hu
100
+ - th
101
+ - pl
102
+ - nn
103
+ - ca
104
+ - is
105
+ - ta
106
+ - de
107
+ - srp
108
+ - ast
109
+ - bi
110
+ - lb
111
+ - art-x-bork
112
+ - am
113
+ - oc
114
+ - zh
115
+ - ur
116
+ - gl
117
+ licenses:
118
+ - cc-by-nc-4-0
119
+ multilinguality:
120
+ - translation
121
+ size_categories:
122
+ - 100K< n<500k
123
+ source_datasets:
124
+ - original
125
+ task_categories:
126
+ - conditional-text-generation
127
+ task_ids:
128
+ - machine-translation
129
+ ---
130
+
131
+ # Dataset Card for Web Inventory of Transcribed & Translated(WIT) Ted Talks
132
+
133
+ ## Table of Contents
134
+ - [Dataset Description](#dataset-description)
135
+ - [Dataset Summary](#dataset-summary)
136
+ - [Supported Tasks](#supported-tasks-and-leaderboards)
137
+ - [Languages](#languages)
138
+ - [Dataset Structure](#dataset-structure)
139
+ - [Data Instances](#data-instances)
140
+ - [Data Fields](#data-instances)
141
+ - [Data Splits](#data-instances)
142
+ - [Dataset Creation](#dataset-creation)
143
+ - [Curation Rationale](#curation-rationale)
144
+ - [Source Data](#source-data)
145
+ - [Annotations](#annotations)
146
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
147
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
148
+ - [Social Impact of Dataset](#social-impact-of-dataset)
149
+ - [Discussion of Biases](#discussion-of-biases)
150
+ - [Other Known Limitations](#other-known-limitations)
151
+ - [Additional Information](#additional-information)
152
+ - [Dataset Curators](#dataset-curators)
153
+ - [Licensing Information](#licensing-information)
154
+ - [Citation Information](#citation-information)
155
+ - [Contributions](#contributions)
156
+
157
+ ## Dataset Description
158
+
159
+ - **Homepage:** https://wit3.fbk.eu/home
160
+ - **Repository:** https://drive.google.com/file/d/1Cz1Un9p8Xn9IpEMMrg2kXSDt0dnjxc4z/view?usp=sharing
161
+ - **Paper:** https://www.aclweb.org/anthology/2012.eamt-1.60.pdf
162
+ - **Leaderboard:** [Needs More Information]
163
+ - **Point of Contact:** [Mauro Cettolo](mailto:[email protected])
164
+ [Roldano Cattoni](mailto:[email protected])
165
+
166
+
167
+ ### Dataset Summary
168
+
169
+ The Web Inventory Talk is a collection of the original Ted talks and their translated version. The translations are available in more than 109+ languages, though the distribution is not uniform.
170
+
171
+ To load a language pair which isn't part of the config, all you need to do is specify the language code as pairs.
172
+ E.g.
173
+
174
+ `dataset = load_dataset("ted_talks_iwslt", language_pair=("it", "pl"), year="2014")`
175
+
176
+ The full list of languages is: 'af', 'am', 'ar', 'arq', 'art-x-bork', 'as', 'ast', 'az', 'be', 'bg', 'bi', 'bn', 'bo', 'bs', 'ca', 'ceb', 'cnh', 'cs', 'da', 'de', 'el', 'en', 'eo', 'es', 'et', 'eu', 'fa', 'fi', 'fil', 'fr', 'fr-ca', 'ga', 'gl', 'gu', 'ha', 'he', 'hi', 'hr', 'ht', 'hu', 'hup', 'hy', 'id', 'ig', 'inh', 'is', 'it', 'ja', 'ka', 'kk', 'km', 'kn', 'ko', 'ku', 'ky', 'la', 'lb', 'lo', 'lt', 'ltg', 'lv', 'mg', 'mk', 'ml', 'mn', 'mr', 'ms', 'mt', 'my', 'nb', 'ne', 'nl', 'nn', 'oc', 'pa', 'pl', 'ps', 'pt', 'pt-br', 'ro', 'ru', 'rup', 'sh', 'si', 'sk', 'sl', 'so', 'sq', 'sr', 'srp', 'sv', 'sw', 'szl', 'ta', 'te', 'tg', 'th', 'tl', 'tlh', 'tr', 'tt', 'ug', 'uk', 'ur', 'uz', 'vi', 'zh', 'zh-cn', 'zh-tw'.
177
+
178
+ The full list of years is: '2014', '2015', '2016'.
179
+
180
+ ### Supported Tasks and Leaderboards
181
+
182
+ machine learning task, language modeling and generation
183
+
184
+ ### Languages
185
+
186
+ Ted talks are mostly held in English (`en`). Almost all of the talks have been translated, by volunteers, into Arabic, Bulgarian, Chinese (simplified), French, Italian, Korean, Portuguese (Brazil) and Spanish. For about 70 other languages, the number of translated talks ranges from several hundreds (e.g. such as other Dutch, German, Hebrew, Romanian) to one (e.g. Hausa, Hupa, Bislama, Ingush, Maltese)
187
+
188
+ ## Dataset Structure
189
+
190
+ ### Data Instances
191
+
192
+ One example from the dataset is:
193
+
194
+ ```
195
+ {'translation': {'hi': 'जब मार्च २०१४ में इबोला का प्रकोप छाया, पर्डिस सबेटी और उनकी टीम को वाइरस के जीनोम का अनुक्रमण करना था, सीखना था कि यह कैसे परवतिर्त होते हैं और फैलते हैं। सबेटी ने तुरंत ही अपने अनुसंधान को वेब में जारी किया, ताकि दुनिया भर के वाइरस ट्रैकर्स और वैज्ञानिक इस तत्काल लड़ाई में शामिल हो सकें। इस बातचीत में, वह दिखाती हैं कि सबका सहयोग ही कुंजी है वाइरस को रोकने के लिए--और लड़ने के लिए आगे आने वाले हमलों से। सबेटी ने कहा,"हमने खुले तौर पर काम किया, साझा किया और साथ काम किया"। "हमे दुनिया को एक वाइरस के विनाश से नहीं, पर अरबों दिलों और दिमागों की एकता से परिभाषित करना है"।',
196
+ 'nl': 'Toen Ebola in maart 2014 uitbrak, zijn Pardis Sabeti en haar team aan het werk gegaan om het genoom in kaart te brengen. Zo ontdekten ze hoe het virus zich verspreidde en muteerde. Sabeti zette direct haar onderzoek op het internet, zodat wereldwijd virus-jagers en wetenschappers mee konden werken aan de strijd. In deze talk laat ze zien hoe die openheid geholpen heeft bij het stoppen van het virus en hoe het kan helpen bij de strijd tegen het volgende virus. "We moesten transparant werken, delen en samenwerken". Sabeti zegt:"Laat de wereld niet ten onder gaan aan een virus, maar verlicht worden door miljoenen harten en geesten die samenwerken."'}}
197
+ ```
198
+
199
+ The original XML files are formatted like this example:
200
+
201
+
202
+ ```
203
+ <file id="1">
204
+ <head>
205
+ <url>http://www.ted.com/talks/ryan_holladay_to_hear_this_music_you_have_to_be_there_literally.html</url>
206
+ <pagesize>66634</pagesize>
207
+ <dtime>Sun Jan 12 15:17:32 CET 2014</dtime>
208
+ <content-type>text/html; charset=utf-8</content-type>
209
+ <encoding>utf-8</encoding>
210
+ <videourl>http://download.ted.com/talks/RyanHolladay_2013S.mp4</videourl>
211
+ <videopath>talks/RyanHolladay_2013S.mp4</videopath>
212
+ <transcription>
213
+ <seekvideo id="2939">(Music)</seekvideo>
214
+ <seekvideo id="7555">For any of you who have visited or lived in New York City,</seekvideo>
215
+ <seekvideo id="11221">these shots might start to look familiar.</seekvideo>
216
+ <seekvideo id="16116">This is Central Park,</seekvideo>
217
+ .
218
+ .
219
+ .
220
+ <seekvideo id="361992">for people to interact with</seekvideo>
221
+ <seekvideo id="363709">and experience music.</seekvideo>
222
+ <seekvideo id="365451">Thank you.</seekvideo>
223
+ <seekvideo id="367495">(Applause)</seekvideo>
224
+ </transcription>
225
+ <talkid>1903</talkid>
226
+ <title>Ryan Holladay: To hear this music you have to be there. Literally</title>
227
+ <description>The music industry ......segments of sounds that only play when a listener is physically nearby. (Filmed at TED@BCG.)</description>
228
+ <keywords>entertainment,music,technology</keywords>
229
+ <image>http://images.ted.com/images/ted/d98c17773da6f84e9f915895c270c7ffd2de3778_389x292.jpg</image>
230
+ <date>2014/01/12</date>
231
+ <wordnum>885</wordnum>
232
+ <charnum>5051</charnum>
233
+ </head>
234
+ <content>(Music) For any of you who have visited or lived in New York City, these shots might start to look familiar. This is Central Park, ............new ways for people to interact with and experience music. Thank you. (Applause)</content>
235
+ </file>
236
+ ```
237
+
238
+ ### Data Fields
239
+ The fields of the dataset are:
240
+ - translation:
241
+ - <lang1>: text in <lang1>
242
+ - <lang2>L translated text in <lang2>
243
+
244
+ Information about the original data files:
245
+
246
+ For each language, a single XML file is generated which includes all talks subtitled in
247
+ that language. Each talk is enclosed in tags `<file id="int">` and `</file>` and includes, among other tags:
248
+
249
+ | Tags | Description |
250
+ |---|:---|
251
+ | `<url>`| the address of the original HTML document of the talk |
252
+ | `<speaker>` | the name of the talk speaker |
253
+ | `<talkid>` | the numeric talk identifier |
254
+ | `<transcript>` | talk subtitles split in captions |
255
+ | `<date>` | the issue date of the talk |
256
+ | `<content>` | talk subtitles |
257
+
258
+
259
+ ### Data Splits
260
+
261
+ The paper doesn't provide any specific train-test-dev splits. However data can be split by available years (2014, 2015, 2016)
262
+
263
+
264
+ ## Dataset Creation
265
+
266
+ ### Curation Rationale
267
+
268
+ TED Conference, based in California, has been posting all video recordings of its talks together with subtitles in English and their translations in more than 80 languages. Aside from its cultural and social relevance, this content, which is published under the Creative Commons BYNC-ND license, also represents a precious language resource for the machine translation research community, thanks to its size, variety of topics, and covered languages.
269
+
270
+ ### Source Data
271
+
272
+ #### Initial Data Collection and Normalization
273
+
274
+ The talks were collected from the [Ted Conference website](http://www.ted.com/)
275
+
276
+ #### Who are the source language producers?
277
+
278
+ [Needs More Information]
279
+
280
+ ### Annotations
281
+
282
+ #### Annotation process
283
+
284
+ [Needs More Information]
285
+
286
+ #### Who are the annotators?
287
+
288
+ Translation has been contributed by volunteers
289
+
290
+ ### Personal and Sensitive Information
291
+
292
+ No personal and sensitive information is provided in the dataset. All talks are publicly available
293
+
294
+ ## Considerations for Using the Data
295
+
296
+ ### Social Impact of Dataset
297
+
298
+ In statistical machine translation, large amount of in-domain parallel data are usually required to properly train translation and reordering models. With more than 900+ Ted talks (as of 2011) and translation in more than 90+ languages. This dataset provides a useful resource for the MT research community.
299
+
300
+ In turn, this enables easy access to a vast treasure trove of human knowledge.
301
+
302
+ ### Discussion of Biases
303
+
304
+ [Needs More Information]
305
+
306
+ ### Other Known Limitations
307
+
308
+ [Needs More Information]
309
+
310
+ ## Additional Information
311
+
312
+ ### Dataset Curators
313
+
314
+ The original dataset was curated by:
315
+ [Mauro Cettolo](mailto:[email protected])
316
+ [Roldano Cattoni](mailto:[email protected])
317
+
318
+ Author:
319
+ Christian Girardi
320
+
321
+ For issues with the HuggingFace Dataset implementation, reach out: [Aakash Gupta](mailto:[email protected])
322
+
323
+ ### Licensing Information
324
+
325
+ cc-by-nc-4.0
326
+
327
+ ### Citation Information
328
+ ```
329
+ @inproceedings{cettolo-etal-2012-wit3,
330
+ title = "{WIT}3: Web Inventory of Transcribed and Translated Talks",
331
+ author = "Cettolo, Mauro and
332
+ Girardi, Christian and
333
+ Federico, Marcello",
334
+ booktitle = "Proceedings of the 16th Annual conference of the European Association for Machine Translation",
335
+ month = may # " 28{--}30",
336
+ year = "2012",
337
+ address = "Trento, Italy",
338
+ publisher = "European Association for Machine Translation",
339
+ url = "https://www.aclweb.org/anthology/2012.eamt-1.60",
340
+ pages = "261--268",
341
+ }
342
+
343
+ ```
344
+
345
+ ### Contributions
346
+
347
+ Thanks to [@skyprince999](https://github.com/skyprince999) for adding this dataset.
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"eu_ca_2014": {"description": "The core of WIT3 is the TED Talks corpus, that basically redistributes the original content published by the TED Conference website (http://www.ted.com). Since 2007,\nthe TED Conference, based in California, has been posting all video recordings of its talks together with subtitles in English\nand their translations in more than 80 languages. Aside from its cultural and social relevance, this content, which is published under the Creative Commons BYNC-ND license, also represents a precious\nlanguage resource for the machine translation research community, thanks to its size, variety of topics, and covered languages.\nThis effort repurposes the original content in a way which is more convenient for machine translation researchers.\n", "citation": "@inproceedings{cettolo-etal-2012-wit3,\n title = \"{WIT}3: Web Inventory of Transcribed and Translated Talks\",\n author = \"Cettolo, Mauro and\n Girardi, Christian and\n Federico, Marcello\",\n booktitle = \"Proceedings of the 16th Annual conference of the European Association for Machine Translation\",\n month = may # \" 28{--}30\",\n year = \"2012\",\n address = \"Trento, Italy\",\n publisher = \"European Association for Machine Translation\",\n url = \"https://www.aclweb.org/anthology/2012.eamt-1.60\",\n pages = \"261--268\",\n}\n", "homepage": "https://wit3.fbk.eu/", "license": "CC-BY-NC-4.0", "features": {"translation": {"languages": ["eu", "ca"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "ted_talks_iwslt", "config_name": "eu_ca_2014", "version": {"version_str": "1.1.0", "description": "", "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 15200, "num_examples": 44, "dataset_name": "ted_talks_iwslt"}}, "download_checksums": {"https://drive.google.com/u/0/uc?id=1Cz1Un9p8Xn9IpEMMrg2kXSDt0dnjxc4z&export=download": {"num_bytes": 1666674366, "checksum": "4f3d977f743e330d566024420ea53ca4db50649191fd350f8e9a60d070b13dff"}}, "download_size": 1666674366, "post_processing_size": null, "dataset_size": 15200, "size_in_bytes": 1666689566}, "eu_ca_2015": {"description": "The core of WIT3 is the TED Talks corpus, that basically redistributes the original content published by the TED Conference website (http://www.ted.com). Since 2007,\nthe TED Conference, based in California, has been posting all video recordings of its talks together with subtitles in English\nand their translations in more than 80 languages. Aside from its cultural and social relevance, this content, which is published under the Creative Commons BYNC-ND license, also represents a precious\nlanguage resource for the machine translation research community, thanks to its size, variety of topics, and covered languages.\nThis effort repurposes the original content in a way which is more convenient for machine translation researchers.\n", "citation": "@inproceedings{cettolo-etal-2012-wit3,\n title = \"{WIT}3: Web Inventory of Transcribed and Translated Talks\",\n author = \"Cettolo, Mauro and\n Girardi, Christian and\n Federico, Marcello\",\n booktitle = \"Proceedings of the 16th Annual conference of the European Association for Machine Translation\",\n month = may # \" 28{--}30\",\n year = \"2012\",\n address = \"Trento, Italy\",\n publisher = \"European Association for Machine Translation\",\n url = \"https://www.aclweb.org/anthology/2012.eamt-1.60\",\n pages = \"261--268\",\n}\n", "homepage": "https://wit3.fbk.eu/", "license": "CC-BY-NC-4.0", "features": {"translation": {"languages": ["eu", "ca"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "ted_talks_iwslt", "config_name": "eu_ca_2015", "version": {"version_str": "1.1.0", "description": "", "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 18776, "num_examples": 52, "dataset_name": "ted_talks_iwslt"}}, "download_checksums": {"https://drive.google.com/u/0/uc?id=1Cz1Un9p8Xn9IpEMMrg2kXSDt0dnjxc4z&export=download": {"num_bytes": 1666674366, "checksum": "4f3d977f743e330d566024420ea53ca4db50649191fd350f8e9a60d070b13dff"}}, "download_size": 1666674366, "post_processing_size": null, "dataset_size": 18776, "size_in_bytes": 1666693142}, "eu_ca_2016": {"description": "The core of WIT3 is the TED Talks corpus, that basically redistributes the original content published by the TED Conference website (http://www.ted.com). Since 2007,\nthe TED Conference, based in California, has been posting all video recordings of its talks together with subtitles in English\nand their translations in more than 80 languages. Aside from its cultural and social relevance, this content, which is published under the Creative Commons BYNC-ND license, also represents a precious\nlanguage resource for the machine translation research community, thanks to its size, variety of topics, and covered languages.\nThis effort repurposes the original content in a way which is more convenient for machine translation researchers.\n", "citation": "@inproceedings{cettolo-etal-2012-wit3,\n title = \"{WIT}3: Web Inventory of Transcribed and Translated Talks\",\n author = \"Cettolo, Mauro and\n Girardi, Christian and\n Federico, Marcello\",\n booktitle = \"Proceedings of the 16th Annual conference of the European Association for Machine Translation\",\n month = may # \" 28{--}30\",\n year = \"2012\",\n address = \"Trento, Italy\",\n publisher = \"European Association for Machine Translation\",\n url = \"https://www.aclweb.org/anthology/2012.eamt-1.60\",\n pages = \"261--268\",\n}\n", "homepage": "https://wit3.fbk.eu/", "license": "CC-BY-NC-4.0", "features": {"translation": {"languages": ["eu", "ca"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "ted_talks_iwslt", "config_name": "eu_ca_2016", "version": {"version_str": "1.1.0", "description": "", "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 19514, "num_examples": 54, "dataset_name": "ted_talks_iwslt"}}, "download_checksums": {"https://drive.google.com/u/0/uc?id=1Cz1Un9p8Xn9IpEMMrg2kXSDt0dnjxc4z&export=download": {"num_bytes": 1666674366, "checksum": "4f3d977f743e330d566024420ea53ca4db50649191fd350f8e9a60d070b13dff"}}, "download_size": 1666674366, "post_processing_size": null, "dataset_size": 19514, "size_in_bytes": 1666693880}, "nl_en_2014": {"description": "The core of WIT3 is the TED Talks corpus, that basically redistributes the original content published by the TED Conference website (http://www.ted.com). Since 2007,\nthe TED Conference, based in California, has been posting all video recordings of its talks together with subtitles in English\nand their translations in more than 80 languages. Aside from its cultural and social relevance, this content, which is published under the Creative Commons BYNC-ND license, also represents a precious\nlanguage resource for the machine translation research community, thanks to its size, variety of topics, and covered languages.\nThis effort repurposes the original content in a way which is more convenient for machine translation researchers.\n", "citation": "@inproceedings{cettolo-etal-2012-wit3,\n title = \"{WIT}3: Web Inventory of Transcribed and Translated Talks\",\n author = \"Cettolo, Mauro and\n Girardi, Christian and\n Federico, Marcello\",\n booktitle = \"Proceedings of the 16th Annual conference of the European Association for Machine Translation\",\n month = may # \" 28{--}30\",\n year = \"2012\",\n address = \"Trento, Italy\",\n publisher = \"European Association for Machine Translation\",\n url = \"https://www.aclweb.org/anthology/2012.eamt-1.60\",\n pages = \"261--268\",\n}\n", "homepage": "https://wit3.fbk.eu/", "license": "CC-BY-NC-4.0", "features": {"translation": {"languages": ["nl", "en"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "ted_talks_iwslt", "config_name": "nl_en_2014", "version": {"version_str": "1.1.0", "description": "", "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1035553, "num_examples": 2966, "dataset_name": "ted_talks_iwslt"}}, "download_checksums": {"https://drive.google.com/u/0/uc?id=1Cz1Un9p8Xn9IpEMMrg2kXSDt0dnjxc4z&export=download": {"num_bytes": 1666674366, "checksum": "4f3d977f743e330d566024420ea53ca4db50649191fd350f8e9a60d070b13dff"}}, "download_size": 1666674366, "post_processing_size": null, "dataset_size": 1035553, "size_in_bytes": 1667709919}, "nl_en_2015": {"description": "The core of WIT3 is the TED Talks corpus, that basically redistributes the original content published by the TED Conference website (http://www.ted.com). Since 2007,\nthe TED Conference, based in California, has been posting all video recordings of its talks together with subtitles in English\nand their translations in more than 80 languages. Aside from its cultural and social relevance, this content, which is published under the Creative Commons BYNC-ND license, also represents a precious\nlanguage resource for the machine translation research community, thanks to its size, variety of topics, and covered languages.\nThis effort repurposes the original content in a way which is more convenient for machine translation researchers.\n", "citation": "@inproceedings{cettolo-etal-2012-wit3,\n title = \"{WIT}3: Web Inventory of Transcribed and Translated Talks\",\n author = \"Cettolo, Mauro and\n Girardi, Christian and\n Federico, Marcello\",\n booktitle = \"Proceedings of the 16th Annual conference of the European Association for Machine Translation\",\n month = may # \" 28{--}30\",\n year = \"2012\",\n address = \"Trento, Italy\",\n publisher = \"European Association for Machine Translation\",\n url = \"https://www.aclweb.org/anthology/2012.eamt-1.60\",\n pages = \"261--268\",\n}\n", "homepage": "https://wit3.fbk.eu/", "license": "CC-BY-NC-4.0", "features": {"translation": {"languages": ["nl", "en"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "ted_talks_iwslt", "config_name": "nl_en_2015", "version": {"version_str": "1.1.0", "description": "", "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1292618, "num_examples": 3550, "dataset_name": "ted_talks_iwslt"}}, "download_checksums": {"https://drive.google.com/u/0/uc?id=1Cz1Un9p8Xn9IpEMMrg2kXSDt0dnjxc4z&export=download": {"num_bytes": 1666674366, "checksum": "4f3d977f743e330d566024420ea53ca4db50649191fd350f8e9a60d070b13dff"}}, "download_size": 1666674366, "post_processing_size": null, "dataset_size": 1292618, "size_in_bytes": 1667966984}, "nl_en_2016": {"description": "The core of WIT3 is the TED Talks corpus, that basically redistributes the original content published by the TED Conference website (http://www.ted.com). Since 2007,\nthe TED Conference, based in California, has been posting all video recordings of its talks together with subtitles in English\nand their translations in more than 80 languages. Aside from its cultural and social relevance, this content, which is published under the Creative Commons BYNC-ND license, also represents a precious\nlanguage resource for the machine translation research community, thanks to its size, variety of topics, and covered languages.\nThis effort repurposes the original content in a way which is more convenient for machine translation researchers.\n", "citation": "@inproceedings{cettolo-etal-2012-wit3,\n title = \"{WIT}3: Web Inventory of Transcribed and Translated Talks\",\n author = \"Cettolo, Mauro and\n Girardi, Christian and\n Federico, Marcello\",\n booktitle = \"Proceedings of the 16th Annual conference of the European Association for Machine Translation\",\n month = may # \" 28{--}30\",\n year = \"2012\",\n address = \"Trento, Italy\",\n publisher = \"European Association for Machine Translation\",\n url = \"https://www.aclweb.org/anthology/2012.eamt-1.60\",\n pages = \"261--268\",\n}\n", "homepage": "https://wit3.fbk.eu/", "license": "CC-BY-NC-4.0", "features": {"translation": {"languages": ["nl", "en"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "ted_talks_iwslt", "config_name": "nl_en_2016", "version": {"version_str": "1.1.0", "description": "", "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1434215, "num_examples": 3852, "dataset_name": "ted_talks_iwslt"}}, "download_checksums": {"https://drive.google.com/u/0/uc?id=1Cz1Un9p8Xn9IpEMMrg2kXSDt0dnjxc4z&export=download": {"num_bytes": 1666674366, "checksum": "4f3d977f743e330d566024420ea53ca4db50649191fd350f8e9a60d070b13dff"}}, "download_size": 1666674366, "post_processing_size": null, "dataset_size": 1434215, "size_in_bytes": 1668108581}, "nl_hi_2014": {"description": "The core of WIT3 is the TED Talks corpus, that basically redistributes the original content published by the TED Conference website (http://www.ted.com). Since 2007,\nthe TED Conference, based in California, has been posting all video recordings of its talks together with subtitles in English\nand their translations in more than 80 languages. Aside from its cultural and social relevance, this content, which is published under the Creative Commons BYNC-ND license, also represents a precious\nlanguage resource for the machine translation research community, thanks to its size, variety of topics, and covered languages.\nThis effort repurposes the original content in a way which is more convenient for machine translation researchers.\n", "citation": "@inproceedings{cettolo-etal-2012-wit3,\n title = \"{WIT}3: Web Inventory of Transcribed and Translated Talks\",\n author = \"Cettolo, Mauro and\n Girardi, Christian and\n Federico, Marcello\",\n booktitle = \"Proceedings of the 16th Annual conference of the European Association for Machine Translation\",\n month = may # \" 28{--}30\",\n year = \"2012\",\n address = \"Trento, Italy\",\n publisher = \"European Association for Machine Translation\",\n url = \"https://www.aclweb.org/anthology/2012.eamt-1.60\",\n pages = \"261--268\",\n}\n", "homepage": "https://wit3.fbk.eu/", "license": "CC-BY-NC-4.0", "features": {"translation": {"languages": ["nl", "hi"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "ted_talks_iwslt", "config_name": "nl_hi_2014", "version": {"version_str": "1.1.0", "description": "", "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 214878, "num_examples": 367, "dataset_name": "ted_talks_iwslt"}}, "download_checksums": {"https://drive.google.com/u/0/uc?id=1Cz1Un9p8Xn9IpEMMrg2kXSDt0dnjxc4z&export=download": {"num_bytes": 1666674366, "checksum": "4f3d977f743e330d566024420ea53ca4db50649191fd350f8e9a60d070b13dff"}}, "download_size": 1666674366, "post_processing_size": null, "dataset_size": 214878, "size_in_bytes": 1666889244}, "nl_hi_2015": {"description": "The core of WIT3 is the TED Talks corpus, that basically redistributes the original content published by the TED Conference website (http://www.ted.com). Since 2007,\nthe TED Conference, based in California, has been posting all video recordings of its talks together with subtitles in English\nand their translations in more than 80 languages. Aside from its cultural and social relevance, this content, which is published under the Creative Commons BYNC-ND license, also represents a precious\nlanguage resource for the machine translation research community, thanks to its size, variety of topics, and covered languages.\nThis effort repurposes the original content in a way which is more convenient for machine translation researchers.\n", "citation": "@inproceedings{cettolo-etal-2012-wit3,\n title = \"{WIT}3: Web Inventory of Transcribed and Translated Talks\",\n author = \"Cettolo, Mauro and\n Girardi, Christian and\n Federico, Marcello\",\n booktitle = \"Proceedings of the 16th Annual conference of the European Association for Machine Translation\",\n month = may # \" 28{--}30\",\n year = \"2012\",\n address = \"Trento, Italy\",\n publisher = \"European Association for Machine Translation\",\n url = \"https://www.aclweb.org/anthology/2012.eamt-1.60\",\n pages = \"261--268\",\n}\n", "homepage": "https://wit3.fbk.eu/", "license": "CC-BY-NC-4.0", "features": {"translation": {"languages": ["nl", "hi"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "ted_talks_iwslt", "config_name": "nl_hi_2015", "version": {"version_str": "1.1.0", "description": "", "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 252200, "num_examples": 421, "dataset_name": "ted_talks_iwslt"}}, "download_checksums": {"https://drive.google.com/u/0/uc?id=1Cz1Un9p8Xn9IpEMMrg2kXSDt0dnjxc4z&export=download": {"num_bytes": 1666674366, "checksum": "4f3d977f743e330d566024420ea53ca4db50649191fd350f8e9a60d070b13dff"}}, "download_size": 1666674366, "post_processing_size": null, "dataset_size": 252200, "size_in_bytes": 1666926566}, "nl_hi_2016": {"description": "The core of WIT3 is the TED Talks corpus, that basically redistributes the original content published by the TED Conference website (http://www.ted.com). Since 2007,\nthe TED Conference, based in California, has been posting all video recordings of its talks together with subtitles in English\nand their translations in more than 80 languages. Aside from its cultural and social relevance, this content, which is published under the Creative Commons BYNC-ND license, also represents a precious\nlanguage resource for the machine translation research community, thanks to its size, variety of topics, and covered languages.\nThis effort repurposes the original content in a way which is more convenient for machine translation researchers.\n", "citation": "@inproceedings{cettolo-etal-2012-wit3,\n title = \"{WIT}3: Web Inventory of Transcribed and Translated Talks\",\n author = \"Cettolo, Mauro and\n Girardi, Christian and\n Federico, Marcello\",\n booktitle = \"Proceedings of the 16th Annual conference of the European Association for Machine Translation\",\n month = may # \" 28{--}30\",\n year = \"2012\",\n address = \"Trento, Italy\",\n publisher = \"European Association for Machine Translation\",\n url = \"https://www.aclweb.org/anthology/2012.eamt-1.60\",\n pages = \"261--268\",\n}\n", "homepage": "https://wit3.fbk.eu/", "license": "CC-BY-NC-4.0", "features": {"translation": {"languages": ["nl", "hi"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "ted_talks_iwslt", "config_name": "nl_hi_2016", "version": {"version_str": "1.1.0", "description": "", "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 310930, "num_examples": 496, "dataset_name": "ted_talks_iwslt"}}, "download_checksums": {"https://drive.google.com/u/0/uc?id=1Cz1Un9p8Xn9IpEMMrg2kXSDt0dnjxc4z&export=download": {"num_bytes": 1666674366, "checksum": "4f3d977f743e330d566024420ea53ca4db50649191fd350f8e9a60d070b13dff"}}, "download_size": 1666674366, "post_processing_size": null, "dataset_size": 310930, "size_in_bytes": 1666985296}, "de_ja_2014": {"description": "The core of WIT3 is the TED Talks corpus, that basically redistributes the original content published by the TED Conference website (http://www.ted.com). Since 2007,\nthe TED Conference, based in California, has been posting all video recordings of its talks together with subtitles in English\nand their translations in more than 80 languages. Aside from its cultural and social relevance, this content, which is published under the Creative Commons BYNC-ND license, also represents a precious\nlanguage resource for the machine translation research community, thanks to its size, variety of topics, and covered languages.\nThis effort repurposes the original content in a way which is more convenient for machine translation researchers.\n", "citation": "@inproceedings{cettolo-etal-2012-wit3,\n title = \"{WIT}3: Web Inventory of Transcribed and Translated Talks\",\n author = \"Cettolo, Mauro and\n Girardi, Christian and\n Federico, Marcello\",\n booktitle = \"Proceedings of the 16th Annual conference of the European Association for Machine Translation\",\n month = may # \" 28{--}30\",\n year = \"2012\",\n address = \"Trento, Italy\",\n publisher = \"European Association for Machine Translation\",\n url = \"https://www.aclweb.org/anthology/2012.eamt-1.60\",\n pages = \"261--268\",\n}\n", "homepage": "https://wit3.fbk.eu/", "license": "CC-BY-NC-4.0", "features": {"translation": {"languages": ["de", "ja"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "ted_talks_iwslt", "config_name": "de_ja_2014", "version": {"version_str": "1.1.0", "description": "", "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1074411, "num_examples": 2536, "dataset_name": "ted_talks_iwslt"}}, "download_checksums": {"https://drive.google.com/u/0/uc?id=1Cz1Un9p8Xn9IpEMMrg2kXSDt0dnjxc4z&export=download": {"num_bytes": 1666674366, "checksum": "4f3d977f743e330d566024420ea53ca4db50649191fd350f8e9a60d070b13dff"}}, "download_size": 1666674366, "post_processing_size": null, "dataset_size": 1074411, "size_in_bytes": 1667748777}, "de_ja_2015": {"description": "The core of WIT3 is the TED Talks corpus, that basically redistributes the original content published by the TED Conference website (http://www.ted.com). Since 2007,\nthe TED Conference, based in California, has been posting all video recordings of its talks together with subtitles in English\nand their translations in more than 80 languages. Aside from its cultural and social relevance, this content, which is published under the Creative Commons BYNC-ND license, also represents a precious\nlanguage resource for the machine translation research community, thanks to its size, variety of topics, and covered languages.\nThis effort repurposes the original content in a way which is more convenient for machine translation researchers.\n", "citation": "@inproceedings{cettolo-etal-2012-wit3,\n title = \"{WIT}3: Web Inventory of Transcribed and Translated Talks\",\n author = \"Cettolo, Mauro and\n Girardi, Christian and\n Federico, Marcello\",\n booktitle = \"Proceedings of the 16th Annual conference of the European Association for Machine Translation\",\n month = may # \" 28{--}30\",\n year = \"2012\",\n address = \"Trento, Italy\",\n publisher = \"European Association for Machine Translation\",\n url = \"https://www.aclweb.org/anthology/2012.eamt-1.60\",\n pages = \"261--268\",\n}\n", "homepage": "https://wit3.fbk.eu/", "license": "CC-BY-NC-4.0", "features": {"translation": {"languages": ["de", "ja"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "ted_talks_iwslt", "config_name": "de_ja_2015", "version": {"version_str": "1.1.0", "description": "", "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1442055, "num_examples": 3247, "dataset_name": "ted_talks_iwslt"}}, "download_checksums": {"https://drive.google.com/u/0/uc?id=1Cz1Un9p8Xn9IpEMMrg2kXSDt0dnjxc4z&export=download": {"num_bytes": 1666674366, "checksum": "4f3d977f743e330d566024420ea53ca4db50649191fd350f8e9a60d070b13dff"}}, "download_size": 1666674366, "post_processing_size": null, "dataset_size": 1442055, "size_in_bytes": 1668116421}, "de_ja_2016": {"description": "The core of WIT3 is the TED Talks corpus, that basically redistributes the original content published by the TED Conference website (http://www.ted.com). Since 2007,\nthe TED Conference, based in California, has been posting all video recordings of its talks together with subtitles in English\nand their translations in more than 80 languages. Aside from its cultural and social relevance, this content, which is published under the Creative Commons BYNC-ND license, also represents a precious\nlanguage resource for the machine translation research community, thanks to its size, variety of topics, and covered languages.\nThis effort repurposes the original content in a way which is more convenient for machine translation researchers.\n", "citation": "@inproceedings{cettolo-etal-2012-wit3,\n title = \"{WIT}3: Web Inventory of Transcribed and Translated Talks\",\n author = \"Cettolo, Mauro and\n Girardi, Christian and\n Federico, Marcello\",\n booktitle = \"Proceedings of the 16th Annual conference of the European Association for Machine Translation\",\n month = may # \" 28{--}30\",\n year = \"2012\",\n address = \"Trento, Italy\",\n publisher = \"European Association for Machine Translation\",\n url = \"https://www.aclweb.org/anthology/2012.eamt-1.60\",\n pages = \"261--268\",\n}\n", "homepage": "https://wit3.fbk.eu/", "license": "CC-BY-NC-4.0", "features": {"translation": {"languages": ["de", "ja"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "ted_talks_iwslt", "config_name": "de_ja_2016", "version": {"version_str": "1.1.0", "description": "", "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 1630737, "num_examples": 3590, "dataset_name": "ted_talks_iwslt"}}, "download_checksums": {"https://drive.google.com/u/0/uc?id=1Cz1Un9p8Xn9IpEMMrg2kXSDt0dnjxc4z&export=download": {"num_bytes": 1666674366, "checksum": "4f3d977f743e330d566024420ea53ca4db50649191fd350f8e9a60d070b13dff"}}, "download_size": 1666674366, "post_processing_size": null, "dataset_size": 1630737, "size_in_bytes": 1668305103}, "fr-ca_hi_2014": {"description": "The core of WIT3 is the TED Talks corpus, that basically redistributes the original content published by the TED Conference website (http://www.ted.com). Since 2007,\nthe TED Conference, based in California, has been posting all video recordings of its talks together with subtitles in English\nand their translations in more than 80 languages. Aside from its cultural and social relevance, this content, which is published under the Creative Commons BYNC-ND license, also represents a precious\nlanguage resource for the machine translation research community, thanks to its size, variety of topics, and covered languages.\nThis effort repurposes the original content in a way which is more convenient for machine translation researchers.\n", "citation": "@inproceedings{cettolo-etal-2012-wit3,\n title = \"{WIT}3: Web Inventory of Transcribed and Translated Talks\",\n author = \"Cettolo, Mauro and\n Girardi, Christian and\n Federico, Marcello\",\n booktitle = \"Proceedings of the 16th Annual conference of the European Association for Machine Translation\",\n month = may # \" 28{--}30\",\n year = \"2012\",\n address = \"Trento, Italy\",\n publisher = \"European Association for Machine Translation\",\n url = \"https://www.aclweb.org/anthology/2012.eamt-1.60\",\n pages = \"261--268\",\n}\n", "homepage": "https://wit3.fbk.eu/", "license": "CC-BY-NC-4.0", "features": {"translation": {"languages": ["fr-ca", "hi"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "ted_talks_iwslt", "config_name": "fr-ca_hi_2014", "version": {"version_str": "1.1.0", "description": "", "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 74480, "num_examples": 127, "dataset_name": "ted_talks_iwslt"}}, "download_checksums": {"https://drive.google.com/u/0/uc?id=1Cz1Un9p8Xn9IpEMMrg2kXSDt0dnjxc4z&export=download": {"num_bytes": 1666674366, "checksum": "4f3d977f743e330d566024420ea53ca4db50649191fd350f8e9a60d070b13dff"}}, "download_size": 1666674366, "post_processing_size": null, "dataset_size": 74480, "size_in_bytes": 1666748846}, "fr-ca_hi_2015": {"description": "The core of WIT3 is the TED Talks corpus, that basically redistributes the original content published by the TED Conference website (http://www.ted.com). Since 2007,\nthe TED Conference, based in California, has been posting all video recordings of its talks together with subtitles in English\nand their translations in more than 80 languages. Aside from its cultural and social relevance, this content, which is published under the Creative Commons BYNC-ND license, also represents a precious\nlanguage resource for the machine translation research community, thanks to its size, variety of topics, and covered languages.\nThis effort repurposes the original content in a way which is more convenient for machine translation researchers.\n", "citation": "@inproceedings{cettolo-etal-2012-wit3,\n title = \"{WIT}3: Web Inventory of Transcribed and Translated Talks\",\n author = \"Cettolo, Mauro and\n Girardi, Christian and\n Federico, Marcello\",\n booktitle = \"Proceedings of the 16th Annual conference of the European Association for Machine Translation\",\n month = may # \" 28{--}30\",\n year = \"2012\",\n address = \"Trento, Italy\",\n publisher = \"European Association for Machine Translation\",\n url = \"https://www.aclweb.org/anthology/2012.eamt-1.60\",\n pages = \"261--268\",\n}\n", "homepage": "https://wit3.fbk.eu/", "license": "CC-BY-NC-4.0", "features": {"translation": {"languages": ["fr-ca", "hi"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "ted_talks_iwslt", "config_name": "fr-ca_hi_2015", "version": {"version_str": "1.1.0", "description": "", "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 82456, "num_examples": 141, "dataset_name": "ted_talks_iwslt"}}, "download_checksums": {"https://drive.google.com/u/0/uc?id=1Cz1Un9p8Xn9IpEMMrg2kXSDt0dnjxc4z&export=download": {"num_bytes": 1666674366, "checksum": "4f3d977f743e330d566024420ea53ca4db50649191fd350f8e9a60d070b13dff"}}, "download_size": 1666674366, "post_processing_size": null, "dataset_size": 82456, "size_in_bytes": 1666756822}, "fr-ca_hi_2016": {"description": "The core of WIT3 is the TED Talks corpus, that basically redistributes the original content published by the TED Conference website (http://www.ted.com). Since 2007,\nthe TED Conference, based in California, has been posting all video recordings of its talks together with subtitles in English\nand their translations in more than 80 languages. Aside from its cultural and social relevance, this content, which is published under the Creative Commons BYNC-ND license, also represents a precious\nlanguage resource for the machine translation research community, thanks to its size, variety of topics, and covered languages.\nThis effort repurposes the original content in a way which is more convenient for machine translation researchers.\n", "citation": "@inproceedings{cettolo-etal-2012-wit3,\n title = \"{WIT}3: Web Inventory of Transcribed and Translated Talks\",\n author = \"Cettolo, Mauro and\n Girardi, Christian and\n Federico, Marcello\",\n booktitle = \"Proceedings of the 16th Annual conference of the European Association for Machine Translation\",\n month = may # \" 28{--}30\",\n year = \"2012\",\n address = \"Trento, Italy\",\n publisher = \"European Association for Machine Translation\",\n url = \"https://www.aclweb.org/anthology/2012.eamt-1.60\",\n pages = \"261--268\",\n}\n", "homepage": "https://wit3.fbk.eu/", "license": "CC-BY-NC-4.0", "features": {"translation": {"languages": ["fr-ca", "hi"], "id": null, "_type": "Translation"}}, "post_processed": null, "supervised_keys": null, "builder_name": "ted_talks_iwslt", "config_name": "fr-ca_hi_2016", "version": {"version_str": "1.1.0", "description": "", "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 93433, "num_examples": 156, "dataset_name": "ted_talks_iwslt"}}, "download_checksums": {"https://drive.google.com/u/0/uc?id=1Cz1Un9p8Xn9IpEMMrg2kXSDt0dnjxc4z&export=download": {"num_bytes": 1666674366, "checksum": "4f3d977f743e330d566024420ea53ca4db50649191fd350f8e9a60d070b13dff"}}, "download_size": 1666674366, "post_processing_size": null, "dataset_size": 93433, "size_in_bytes": 1666767799}}
dummy/de_ja_2014/1.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0513788894892ab6ed210ec11596b72bd1b6ffd604acd6ac251be6a85842993
3
+ size 2720
dummy/de_ja_2015/1.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4c04e0d7ce1708eebc04a278361788102b4d6fd931b995a25ad9c9a9dff4a34
3
+ size 2721
dummy/de_ja_2016/1.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9ee47873afac9661bc8ad32aeabbfae6a19d9bd3441011e561d0bd57977c25ff
3
+ size 2666
dummy/eu_ca_2014/1.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f42f0cbf43c5b287738af17f73b4d2e4b903f39ec01d59c9e7750fcf78d7a38
3
+ size 2720
dummy/eu_ca_2015/1.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d4098bcfb0ae5be131bf0e1ca09df7ab2bc420285625b28efbed108164a29cc
3
+ size 2720
dummy/eu_ca_2016/1.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:833916816c6a2b2651c9673eac8cf959b7d1d0304bb232af0fa62c437d3f8a03
3
+ size 2666
dummy/fr-ca_hi_2014/1.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c81a6f63da0d1bc9cb299b6aed01fe3dd0460800621cf9022dd69551cba15f31
3
+ size 2728
dummy/fr-ca_hi_2015/1.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9451be83e173035bdde045f507c7dc95e8785755a1335404be112bbd2a4f08b5
3
+ size 2729
dummy/fr-ca_hi_2016/1.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8596893da8cfb34f2052cc665240d072e0f4dfa858b97868c0ffa5cb46c5a6dc
3
+ size 2675
dummy/nl_en_2014/1.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b04a1b6e1e198061b81235ce74582e222c2ce09fcb8b88c95461415cbb151dd
3
+ size 2720
dummy/nl_en_2015/1.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42ae7885b6912592b41961af966df968f9e1bd97a38487af293d03f39642e6e9
3
+ size 2720
dummy/nl_en_2016/1.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6561d7d0954bec586909f9448e5d7e2d156e025a4ddd05b6a9d73072aaa38e78
3
+ size 2666
dummy/nl_hi_2014/1.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b822b9aa23021f63bb4f7c49add23e5f93907fbf7c8f099a43e297930e48186a
3
+ size 2719
dummy/nl_hi_2015/1.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7a9b8cf88ec68dfc680834d9b1a80e114f1f38a020c9f01fe1a252d85f479b27
3
+ size 2719
dummy/nl_hi_2016/1.1.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4bfb249d6ce43ac8d1dd2975dc3df31d8fecf8e8778da1fca14f129cd65123aa
3
+ size 2665
ted_talks_iwslt.py ADDED
@@ -0,0 +1,408 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+ # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
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
+ """TED TALKS IWSLT: Web Inventory of Transcribed and Translated Ted Talks in 109 languages."""
16
+
17
+ from __future__ import absolute_import, division, print_function
18
+
19
+ import logging
20
+ import os
21
+ import xml.etree.ElementTree as ET
22
+ import zipfile
23
+ from collections import defaultdict
24
+
25
+ import datasets
26
+
27
+
28
+ # TODO: Add BibTeX citation
29
+ # Find for instance the citation on arxiv or on the dataset repo/website
30
+ _CITATION = """\
31
+ @inproceedings{cettolo-etal-2012-wit3,
32
+ title = "{WIT}3: Web Inventory of Transcribed and Translated Talks",
33
+ author = "Cettolo, Mauro and
34
+ Girardi, Christian and
35
+ Federico, Marcello",
36
+ booktitle = "Proceedings of the 16th Annual conference of the European Association for Machine Translation",
37
+ month = may # " 28{--}30",
38
+ year = "2012",
39
+ address = "Trento, Italy",
40
+ publisher = "European Association for Machine Translation",
41
+ url = "https://www.aclweb.org/anthology/2012.eamt-1.60",
42
+ pages = "261--268",
43
+ }
44
+ """
45
+
46
+ # TODO: Add description of the dataset here
47
+ # You can copy an official description
48
+ _DESCRIPTION = """\
49
+ The core of WIT3 is the TED Talks corpus, that basically redistributes the original content published by the TED Conference website (http://www.ted.com). Since 2007,
50
+ the TED Conference, based in California, has been posting all video recordings of its talks together with subtitles in English
51
+ and their translations in more than 80 languages. Aside from its cultural and social relevance, this content, which is published under the Creative Commons BYNC-ND license, also represents a precious
52
+ language resource for the machine translation research community, thanks to its size, variety of topics, and covered languages.
53
+ This effort repurposes the original content in a way which is more convenient for machine translation researchers.
54
+ """
55
+
56
+ # TODO: Add a link to an official homepage for the dataset here
57
+ _HOMEPAGE = "https://wit3.fbk.eu/"
58
+
59
+ # TODO: Add the licence for the dataset here if you can find it
60
+ _LICENSE = "CC-BY-NC-4.0"
61
+
62
+ # TODO: Add link to the official dataset URLs here
63
+ # The HuggingFace dataset library don't host the datasets but only point to the original files
64
+ # This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
65
+ _URL = "https://drive.google.com/u/0/uc?id=1Cz1Un9p8Xn9IpEMMrg2kXSDt0dnjxc4z&export=download"
66
+
67
+ _LANGUAGES = (
68
+ "mr",
69
+ "eu",
70
+ "hr",
71
+ "rup",
72
+ "szl",
73
+ "lo",
74
+ "ms",
75
+ "ht",
76
+ "hy",
77
+ "mg",
78
+ "arq",
79
+ "uk",
80
+ "ku",
81
+ "ig",
82
+ "sr",
83
+ "ug",
84
+ "ne",
85
+ "pt-br",
86
+ "sq",
87
+ "af",
88
+ "km",
89
+ "en",
90
+ "tt",
91
+ "ja",
92
+ "inh",
93
+ "mn",
94
+ "eo",
95
+ "ka",
96
+ "nb",
97
+ "fil",
98
+ "uz",
99
+ "fi",
100
+ "tl",
101
+ "el",
102
+ "tg",
103
+ "bn",
104
+ "si",
105
+ "gu",
106
+ "sk",
107
+ "kn",
108
+ "ar",
109
+ "hup",
110
+ "zh-tw",
111
+ "sl",
112
+ "be",
113
+ "bo",
114
+ "fr",
115
+ "ps",
116
+ "tr",
117
+ "ltg",
118
+ "la",
119
+ "ko",
120
+ "lv",
121
+ "nl",
122
+ "fa",
123
+ "ru",
124
+ "et",
125
+ "vi",
126
+ "pa",
127
+ "my",
128
+ "sw",
129
+ "az",
130
+ "sv",
131
+ "ga",
132
+ "sh",
133
+ "it",
134
+ "da",
135
+ "lt",
136
+ "kk",
137
+ "mk",
138
+ "tlh",
139
+ "he",
140
+ "ceb",
141
+ "bg",
142
+ "fr-ca",
143
+ "ha",
144
+ "ml",
145
+ "mt",
146
+ "as",
147
+ "pt",
148
+ "zh-cn",
149
+ "cnh",
150
+ "ro",
151
+ "hi",
152
+ "es",
153
+ "id",
154
+ "bs",
155
+ "so",
156
+ "cs",
157
+ "te",
158
+ "ky",
159
+ "hu",
160
+ "th",
161
+ "pl",
162
+ "nn",
163
+ "ca",
164
+ "is",
165
+ "ta",
166
+ "de",
167
+ "srp",
168
+ "ast",
169
+ "bi",
170
+ "lb",
171
+ "art-x-bork",
172
+ "am",
173
+ "oc",
174
+ "zh",
175
+ "ur",
176
+ "gl",
177
+ )
178
+
179
+ # Please note that only few pairs are shown here. You can use config to generate data for all language pairs
180
+ _LANGUAGE_PAIRS = [
181
+ ("eu", "ca"),
182
+ ("nl", "en"),
183
+ ("nl", "hi"),
184
+ ("de", "ja"),
185
+ ("fr-ca", "hi"),
186
+ ]
187
+
188
+ # Year subscripts for the specific folder
189
+ _YEAR = {"2014": "-20140120", "2015": "-20150530", "2016": "-20160408"}
190
+
191
+ _YEAR_FOLDER = {"2014": "XML_releases/xml-20140120", "2015": "XML_releases/xml-20150616", "2016": "XML_releases/xml"}
192
+
193
+
194
+ class TedTalksIWSLTConfig(datasets.BuilderConfig):
195
+ """"Builder Config for the TedTalks IWSLT dataset"""
196
+
197
+ def __init__(self, language_pair=(None, None), year=None, **kwargs):
198
+ """BuilderConfig for TedTalks IWSLT dataset.
199
+ Args:
200
+ for the `datasets.features.text.TextEncoder` used for the features feature.
201
+ language_pair: pair of languages that will be used for translation. Should
202
+ contain 2-letter coded strings. First will be used at source and second
203
+ as target in supervised mode. For example: ("pl", "en").
204
+ **kwargs: keyword arguments forwarded to super.
205
+ """
206
+ # Validate language pair.
207
+ name = "%s_%s_%s" % (language_pair[0], language_pair[1], year)
208
+ source, target = language_pair
209
+ assert source in _LANGUAGES, f"Invalid source code in language pair: {source}"
210
+ assert target in _LANGUAGES, f"Invalid target code in language pair: {target}"
211
+ assert source != target, f"Source::{source} and Target::{target} language pairs cannot be the same!"
212
+ assert year in _YEAR.keys()
213
+
214
+ description = f"Translation Ted Talks dataset (WIT3) between {source} and {target}"
215
+ super(TedTalksIWSLTConfig, self).__init__(
216
+ name=name,
217
+ description=description,
218
+ version=datasets.Version("1.1.0", ""),
219
+ **kwargs,
220
+ )
221
+
222
+ self.language_pair = language_pair
223
+ self.year = year
224
+
225
+
226
+ # TODO: Name of the dataset usually match the script name with CamelCase instead of snake_case
227
+ class TedTalksIWSLT(datasets.GeneratorBasedBuilder):
228
+ """TED TALKS IWSLT: Web Inventory of Transcribed and Translated Ted Talks in 109 languages."""
229
+
230
+ VERSION = datasets.Version("1.1.0")
231
+
232
+ BUILDER_CONFIG_CLASS = TedTalksIWSLTConfig
233
+
234
+ BUILDER_CONFIGS = [
235
+ TedTalksIWSLTConfig(language_pair=language_pair, year=year)
236
+ for language_pair in _LANGUAGE_PAIRS
237
+ for year in _YEAR.keys()
238
+ ]
239
+
240
+ # DEFAULT_CONFIG_NAME = "first_domain" # It's not mandatory to have a default configuration. Just use one if it make sense.
241
+
242
+ def _info(self, language_pair=(None, None), year=None, **kwargs):
243
+
244
+ print(self.config.language_pair)
245
+ features = datasets.Features(
246
+ {
247
+ "translation": datasets.features.Translation(languages=self.config.language_pair),
248
+ },
249
+ )
250
+
251
+ return datasets.DatasetInfo(
252
+ # This is the description that will appear on the datasets page.
253
+ description=_DESCRIPTION,
254
+ # This defines the different columns of the dataset and their types
255
+ features=features, # Here we define them above because they are different between the two configurations
256
+ # If there's a common (input, target) tuple from the features,
257
+ # specify them here. They'll be used if as_supervised=True in
258
+ # builder.as_dataset.
259
+ supervised_keys=None,
260
+ # Homepage of the dataset for documentation
261
+ homepage=_HOMEPAGE,
262
+ # License for the dataset if available
263
+ license=_LICENSE,
264
+ # Citation for the dataset
265
+ citation=_CITATION,
266
+ )
267
+
268
+ def _split_generators(self, dl_manager):
269
+ """Returns SplitGenerators."""
270
+ # TODO: This method is tasked with downloading/extracting the data and defining the splits depending on the configuration
271
+ # If several configurations are possible (listed in BUILDER_CONFIGS), the configuration selected by the user is in self.config.name
272
+
273
+ # dl_manager is a datasets.download.DownloadManager that can be used to download and extract URLs
274
+ # It can accept any type or nested list/dict and will give back the same structure with the url replaced with path to local files.
275
+ # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
276
+ my_urls = _URL
277
+ language_pair = self.config.language_pair
278
+ year = self.config.year
279
+
280
+ data_dir = dl_manager.download_and_extract(my_urls)
281
+
282
+ zip_file_pair0 = os.path.join(data_dir, _YEAR_FOLDER[year] + "/ted_" + language_pair[0] + _YEAR[year] + ".zip")
283
+ zip_file_pair1 = os.path.join(data_dir, _YEAR_FOLDER[year] + "/ted_" + language_pair[1] + _YEAR[year] + ".zip")
284
+
285
+ return [
286
+ datasets.SplitGenerator(
287
+ name=datasets.Split.TRAIN,
288
+ # These kwargs will be passed to _generate_examples
289
+ gen_kwargs={
290
+ "filepath": [zip_file_pair0, zip_file_pair1],
291
+ "split": "train",
292
+ },
293
+ ),
294
+ ]
295
+
296
+ def _generate_examples(self, filepath, split):
297
+ """ Yields examples. """
298
+ # TODO: This method will receive as arguments the `gen_kwargs` defined in the previous `_split_generators` method.
299
+ # It is in charge of opening the given file and yielding (key, example) tuples from the dataset
300
+ # The key is not important, it's more here for legacy reason (legacy from tfds)
301
+ source = filepath[0]
302
+ target = filepath[1]
303
+
304
+ # print(filepath)
305
+ language_pair = self.config.name.split("_")
306
+
307
+ def et_to_dict(tree):
308
+ """This is used to convert the xml to a list of dicts"""
309
+
310
+ dct = {tree.tag: {} if tree.attrib else None}
311
+ children = list(tree)
312
+ if children:
313
+ dd = defaultdict(list)
314
+ for dc in map(et_to_dict, children):
315
+ for k, v in dc.items():
316
+ dd[k].append(v)
317
+ dct = {tree.tag: dd}
318
+ if tree.attrib:
319
+ dct[tree.tag].update((k, v) for k, v in tree.attrib.items())
320
+ if tree.text:
321
+ text = tree.text.strip()
322
+ if children or tree.attrib:
323
+ if text:
324
+ dct[tree.tag]["text"] = text
325
+ else:
326
+ dct[tree.tag] = text
327
+ return dct
328
+
329
+ if os.path.exists(source) and os.path.exists(target):
330
+
331
+ with zipfile.ZipFile(source) as zf_source:
332
+ with zipfile.ZipFile(target) as zf_target:
333
+ try:
334
+ tree_source = ET.parse(zf_source.open(source.split("/")[-1][:-3] + "xml"))
335
+ root_source = tree_source.getroot()
336
+ source_talks = et_to_dict(root_source).get("xml").get("file")
337
+
338
+ tree_target = ET.parse(zf_target.open(target.split("/")[-1][:-3] + "xml"))
339
+ root_target = tree_target.getroot()
340
+ target_talks = et_to_dict(root_target).get("xml").get("file")
341
+
342
+ source_ids = [talk.get("head")[0].get("talkid") for talk in source_talks]
343
+ target_ids = [talk.get("head")[0].get("talkid") for talk in target_talks]
344
+ except Exception as pe:
345
+ logging.warning(f"ERROR: {pe}")
346
+ logging.warning(
347
+ f"This likely means that you have a malformed XML file!\nEither {source} or {target}\n"
348
+ )
349
+ source_ids = list()
350
+ target_ids = list()
351
+ else:
352
+ print(f"File doesn't exist {source} or {target}")
353
+ source_ids = list()
354
+ target_ids = list()
355
+
356
+ comm_talkids = [talkid for talkid in target_ids if talkid in source_ids]
357
+
358
+ translation = list()
359
+
360
+ for talkid in comm_talkids:
361
+ source = list(filter(lambda talk: talk.get("head")[0].get("talkid") == talkid, source_talks))
362
+ target = list(filter(lambda talk: talk.get("head")[0].get("talkid") == talkid, target_talks))
363
+
364
+ if len(source) == 0 or len(target) == 0:
365
+ pass
366
+ else:
367
+ source = source[0]
368
+ target = target[0]
369
+
370
+ if source.get("head")[0].get("description") and target.get("head")[0].get("description"):
371
+ if source.get("head")[0].get("description")[0] and target.get("head")[0].get("description")[0]:
372
+ temp_dict = dict()
373
+ temp_dict["id"] = source.get("head")[0].get("talkid")[0] + "_1"
374
+ temp_dict[language_pair[0]] = (
375
+ source.get("head")[0].get("description")[0].replace("TED Talk Subtitles and Transcript: ", "")
376
+ )
377
+ temp_dict[language_pair[1]] = (
378
+ target.get("head")[0].get("description")[0].replace("TED Talk Subtitles and Transcript: ", "")
379
+ )
380
+ translation.append(temp_dict)
381
+
382
+ if source.get("head")[0].get("title") and target.get("head")[0].get("title"):
383
+ if source.get("head")[0].get("title")[0] and target.get("head")[0].get("title")[0]:
384
+ temp_dict = dict()
385
+ temp_dict["id"] = source.get("head")[0].get("talkid")[0] + "_2"
386
+ temp_dict[language_pair[0]] = source.get("head")[0].get("title")[0]
387
+ temp_dict[language_pair[1]] = target.get("head")[0].get("title")[0]
388
+ translation.append(temp_dict)
389
+
390
+ if source.get("head")[0].get("seekvideo") and target.get("head")[0].get("seekvideo"):
391
+ source_transc = source.get("head")[0].get("transcription")[0].get("seekvideo")
392
+ target_transc = target.get("head")[0].get("transcription")[0].get("seekvideo")
393
+
394
+ transc = zip(source_transc, target_transc)
395
+ transcriptions = [
396
+ {"id": s.get("id"), language_pair[0]: s.get("text"), language_pair[1]: t.get("text")}
397
+ for s, t in transc
398
+ ]
399
+ translation.extend(transcriptions)
400
+ # print(translation)
401
+ for talk_segment in translation:
402
+ result = {
403
+ "translation": {
404
+ language_pair[0]: talk_segment[language_pair[0]],
405
+ language_pair[1]: talk_segment[language_pair[1]],
406
+ }
407
+ }
408
+ yield talk_segment["id"], result