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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
annotations_creators:
|
| 3 |
+
- expert-generated
|
| 4 |
+
language_creators:
|
| 5 |
+
- crowdsourced
|
| 6 |
+
- expert-generated
|
| 7 |
+
language:
|
| 8 |
+
- ar
|
| 9 |
+
- ca
|
| 10 |
+
- cy
|
| 11 |
+
- de
|
| 12 |
+
- es
|
| 13 |
+
- et
|
| 14 |
+
- fa
|
| 15 |
+
- fr
|
| 16 |
+
- id
|
| 17 |
+
- it
|
| 18 |
+
- ja
|
| 19 |
+
- lv
|
| 20 |
+
- mn
|
| 21 |
+
- nl
|
| 22 |
+
- pt
|
| 23 |
+
- ru
|
| 24 |
+
- sl
|
| 25 |
+
- sv
|
| 26 |
+
- ta
|
| 27 |
+
- tr
|
| 28 |
+
- zh
|
| 29 |
+
language_bcp47:
|
| 30 |
+
- sv-SE
|
| 31 |
+
- zh-CN
|
| 32 |
+
license:
|
| 33 |
+
- cc-by-nc-4.0
|
| 34 |
+
multilinguality:
|
| 35 |
+
- multilingual
|
| 36 |
+
size_categories:
|
| 37 |
+
- 100K<n<1M
|
| 38 |
+
source_datasets:
|
| 39 |
+
- extended|other-common-voice
|
| 40 |
+
task_categories:
|
| 41 |
+
- automatic-speech-recognition
|
| 42 |
+
task_ids: []
|
| 43 |
+
paperswithcode_id: null
|
| 44 |
+
pretty_name: CoVoST 2
|
| 45 |
+
dataset_info:
|
| 46 |
+
- config_name: en_de
|
| 47 |
+
features:
|
| 48 |
+
- name: client_id
|
| 49 |
+
dtype: string
|
| 50 |
+
- name: file
|
| 51 |
+
dtype: string
|
| 52 |
+
- name: sentence
|
| 53 |
+
dtype: string
|
| 54 |
+
- name: translation
|
| 55 |
+
dtype: string
|
| 56 |
+
- name: id
|
| 57 |
+
dtype: string
|
| 58 |
+
splits:
|
| 59 |
+
- name: train
|
| 60 |
+
num_bytes: 110716293
|
| 61 |
+
num_examples: 289430
|
| 62 |
+
- name: validation
|
| 63 |
+
num_bytes: 5971731
|
| 64 |
+
num_examples: 15531
|
| 65 |
+
- name: test
|
| 66 |
+
num_bytes: 5689684
|
| 67 |
+
num_examples: 15531
|
| 68 |
+
download_size: 25779505
|
| 69 |
+
dataset_size: 122377708
|
| 70 |
+
- config_name: en_tr
|
| 71 |
+
features:
|
| 72 |
+
- name: client_id
|
| 73 |
+
dtype: string
|
| 74 |
+
- name: file
|
| 75 |
+
dtype: string
|
| 76 |
+
- name: sentence
|
| 77 |
+
dtype: string
|
| 78 |
+
- name: translation
|
| 79 |
+
dtype: string
|
| 80 |
+
- name: id
|
| 81 |
+
dtype: string
|
| 82 |
+
splits:
|
| 83 |
+
- name: train
|
| 84 |
+
num_bytes: 109474265
|
| 85 |
+
num_examples: 289430
|
| 86 |
+
- name: validation
|
| 87 |
+
num_bytes: 5914622
|
| 88 |
+
num_examples: 15531
|
| 89 |
+
- name: test
|
| 90 |
+
num_bytes: 5619271
|
| 91 |
+
num_examples: 15531
|
| 92 |
+
download_size: 23659131
|
| 93 |
+
dataset_size: 121008158
|
| 94 |
+
- config_name: en_fa
|
| 95 |
+
features:
|
| 96 |
+
- name: client_id
|
| 97 |
+
dtype: string
|
| 98 |
+
- name: file
|
| 99 |
+
dtype: string
|
| 100 |
+
- name: sentence
|
| 101 |
+
dtype: string
|
| 102 |
+
- name: translation
|
| 103 |
+
dtype: string
|
| 104 |
+
- name: id
|
| 105 |
+
dtype: string
|
| 106 |
+
splits:
|
| 107 |
+
- name: train
|
| 108 |
+
num_bytes: 119490720
|
| 109 |
+
num_examples: 289430
|
| 110 |
+
- name: validation
|
| 111 |
+
num_bytes: 6423535
|
| 112 |
+
num_examples: 15531
|
| 113 |
+
- name: test
|
| 114 |
+
num_bytes: 6103617
|
| 115 |
+
num_examples: 15531
|
| 116 |
+
download_size: 26148420
|
| 117 |
+
dataset_size: 132017872
|
| 118 |
+
- config_name: en_sv-SE
|
| 119 |
+
features:
|
| 120 |
+
- name: client_id
|
| 121 |
+
dtype: string
|
| 122 |
+
- name: file
|
| 123 |
+
dtype: string
|
| 124 |
+
- name: sentence
|
| 125 |
+
dtype: string
|
| 126 |
+
- name: translation
|
| 127 |
+
dtype: string
|
| 128 |
+
- name: id
|
| 129 |
+
dtype: string
|
| 130 |
+
splits:
|
| 131 |
+
- name: train
|
| 132 |
+
num_bytes: 108557530
|
| 133 |
+
num_examples: 289430
|
| 134 |
+
- name: validation
|
| 135 |
+
num_bytes: 5845918
|
| 136 |
+
num_examples: 15531
|
| 137 |
+
- name: test
|
| 138 |
+
num_bytes: 5580039
|
| 139 |
+
num_examples: 15531
|
| 140 |
+
download_size: 23671482
|
| 141 |
+
dataset_size: 119983487
|
| 142 |
+
- config_name: en_mn
|
| 143 |
+
features:
|
| 144 |
+
- name: client_id
|
| 145 |
+
dtype: string
|
| 146 |
+
- name: file
|
| 147 |
+
dtype: string
|
| 148 |
+
- name: sentence
|
| 149 |
+
dtype: string
|
| 150 |
+
- name: translation
|
| 151 |
+
dtype: string
|
| 152 |
+
- name: id
|
| 153 |
+
dtype: string
|
| 154 |
+
splits:
|
| 155 |
+
- name: train
|
| 156 |
+
num_bytes: 123950136
|
| 157 |
+
num_examples: 289430
|
| 158 |
+
- name: validation
|
| 159 |
+
num_bytes: 6693044
|
| 160 |
+
num_examples: 15531
|
| 161 |
+
- name: test
|
| 162 |
+
num_bytes: 6293633
|
| 163 |
+
num_examples: 15531
|
| 164 |
+
download_size: 27527436
|
| 165 |
+
dataset_size: 136936813
|
| 166 |
+
- config_name: en_zh-CN
|
| 167 |
+
features:
|
| 168 |
+
- name: client_id
|
| 169 |
+
dtype: string
|
| 170 |
+
- name: file
|
| 171 |
+
dtype: string
|
| 172 |
+
- name: sentence
|
| 173 |
+
dtype: string
|
| 174 |
+
- name: translation
|
| 175 |
+
dtype: string
|
| 176 |
+
- name: id
|
| 177 |
+
dtype: string
|
| 178 |
+
splits:
|
| 179 |
+
- name: train
|
| 180 |
+
num_bytes: 106490939
|
| 181 |
+
num_examples: 289430
|
| 182 |
+
- name: validation
|
| 183 |
+
num_bytes: 5735331
|
| 184 |
+
num_examples: 15531
|
| 185 |
+
- name: test
|
| 186 |
+
num_bytes: 5487808
|
| 187 |
+
num_examples: 15531
|
| 188 |
+
download_size: 24280932
|
| 189 |
+
dataset_size: 117714078
|
| 190 |
+
- config_name: en_cy
|
| 191 |
+
features:
|
| 192 |
+
- name: client_id
|
| 193 |
+
dtype: string
|
| 194 |
+
- name: file
|
| 195 |
+
dtype: string
|
| 196 |
+
- name: sentence
|
| 197 |
+
dtype: string
|
| 198 |
+
- name: translation
|
| 199 |
+
dtype: string
|
| 200 |
+
- name: id
|
| 201 |
+
dtype: string
|
| 202 |
+
splits:
|
| 203 |
+
- name: train
|
| 204 |
+
num_bytes: 109317182
|
| 205 |
+
num_examples: 289430
|
| 206 |
+
- name: validation
|
| 207 |
+
num_bytes: 5894579
|
| 208 |
+
num_examples: 15531
|
| 209 |
+
- name: test
|
| 210 |
+
num_bytes: 5626428
|
| 211 |
+
num_examples: 15531
|
| 212 |
+
download_size: 24224499
|
| 213 |
+
dataset_size: 120838189
|
| 214 |
+
- config_name: en_ca
|
| 215 |
+
features:
|
| 216 |
+
- name: client_id
|
| 217 |
+
dtype: string
|
| 218 |
+
- name: file
|
| 219 |
+
dtype: string
|
| 220 |
+
- name: sentence
|
| 221 |
+
dtype: string
|
| 222 |
+
- name: translation
|
| 223 |
+
dtype: string
|
| 224 |
+
- name: id
|
| 225 |
+
dtype: string
|
| 226 |
+
splits:
|
| 227 |
+
- name: train
|
| 228 |
+
num_bytes: 109922455
|
| 229 |
+
num_examples: 289430
|
| 230 |
+
- name: validation
|
| 231 |
+
num_bytes: 5924345
|
| 232 |
+
num_examples: 15531
|
| 233 |
+
- name: test
|
| 234 |
+
num_bytes: 5623227
|
| 235 |
+
num_examples: 15531
|
| 236 |
+
download_size: 24167201
|
| 237 |
+
dataset_size: 121470027
|
| 238 |
+
- config_name: en_sl
|
| 239 |
+
features:
|
| 240 |
+
- name: client_id
|
| 241 |
+
dtype: string
|
| 242 |
+
- name: file
|
| 243 |
+
dtype: string
|
| 244 |
+
- name: sentence
|
| 245 |
+
dtype: string
|
| 246 |
+
- name: translation
|
| 247 |
+
dtype: string
|
| 248 |
+
- name: id
|
| 249 |
+
dtype: string
|
| 250 |
+
splits:
|
| 251 |
+
- name: train
|
| 252 |
+
num_bytes: 107987860
|
| 253 |
+
num_examples: 289430
|
| 254 |
+
- name: validation
|
| 255 |
+
num_bytes: 5838299
|
| 256 |
+
num_examples: 15531
|
| 257 |
+
- name: test
|
| 258 |
+
num_bytes: 5537805
|
| 259 |
+
num_examples: 15531
|
| 260 |
+
download_size: 23421999
|
| 261 |
+
dataset_size: 119363964
|
| 262 |
+
- config_name: en_et
|
| 263 |
+
features:
|
| 264 |
+
- name: client_id
|
| 265 |
+
dtype: string
|
| 266 |
+
- name: file
|
| 267 |
+
dtype: string
|
| 268 |
+
- name: sentence
|
| 269 |
+
dtype: string
|
| 270 |
+
- name: translation
|
| 271 |
+
dtype: string
|
| 272 |
+
- name: id
|
| 273 |
+
dtype: string
|
| 274 |
+
splits:
|
| 275 |
+
- name: train
|
| 276 |
+
num_bytes: 107707024
|
| 277 |
+
num_examples: 289430
|
| 278 |
+
- name: validation
|
| 279 |
+
num_bytes: 5810185
|
| 280 |
+
num_examples: 15531
|
| 281 |
+
- name: test
|
| 282 |
+
num_bytes: 5543309
|
| 283 |
+
num_examples: 15531
|
| 284 |
+
download_size: 23223843
|
| 285 |
+
dataset_size: 119060518
|
| 286 |
+
- config_name: en_id
|
| 287 |
+
features:
|
| 288 |
+
- name: client_id
|
| 289 |
+
dtype: string
|
| 290 |
+
- name: file
|
| 291 |
+
dtype: string
|
| 292 |
+
- name: sentence
|
| 293 |
+
dtype: string
|
| 294 |
+
- name: translation
|
| 295 |
+
dtype: string
|
| 296 |
+
- name: id
|
| 297 |
+
dtype: string
|
| 298 |
+
splits:
|
| 299 |
+
- name: train
|
| 300 |
+
num_bytes: 109456930
|
| 301 |
+
num_examples: 289430
|
| 302 |
+
- name: validation
|
| 303 |
+
num_bytes: 5896953
|
| 304 |
+
num_examples: 15531
|
| 305 |
+
- name: test
|
| 306 |
+
num_bytes: 5634939
|
| 307 |
+
num_examples: 15531
|
| 308 |
+
download_size: 22904065
|
| 309 |
+
dataset_size: 120988822
|
| 310 |
+
- config_name: en_ar
|
| 311 |
+
features:
|
| 312 |
+
- name: client_id
|
| 313 |
+
dtype: string
|
| 314 |
+
- name: file
|
| 315 |
+
dtype: string
|
| 316 |
+
- name: sentence
|
| 317 |
+
dtype: string
|
| 318 |
+
- name: translation
|
| 319 |
+
dtype: string
|
| 320 |
+
- name: id
|
| 321 |
+
dtype: string
|
| 322 |
+
splits:
|
| 323 |
+
- name: train
|
| 324 |
+
num_bytes: 116732296
|
| 325 |
+
num_examples: 289430
|
| 326 |
+
- name: validation
|
| 327 |
+
num_bytes: 6280190
|
| 328 |
+
num_examples: 15531
|
| 329 |
+
- name: test
|
| 330 |
+
num_bytes: 5947069
|
| 331 |
+
num_examples: 15531
|
| 332 |
+
download_size: 25301304
|
| 333 |
+
dataset_size: 128959555
|
| 334 |
+
- config_name: en_ta
|
| 335 |
+
features:
|
| 336 |
+
- name: client_id
|
| 337 |
+
dtype: string
|
| 338 |
+
- name: file
|
| 339 |
+
dtype: string
|
| 340 |
+
- name: sentence
|
| 341 |
+
dtype: string
|
| 342 |
+
- name: translation
|
| 343 |
+
dtype: string
|
| 344 |
+
- name: id
|
| 345 |
+
dtype: string
|
| 346 |
+
splits:
|
| 347 |
+
- name: train
|
| 348 |
+
num_bytes: 146318684
|
| 349 |
+
num_examples: 289430
|
| 350 |
+
- name: validation
|
| 351 |
+
num_bytes: 7944020
|
| 352 |
+
num_examples: 15531
|
| 353 |
+
- name: test
|
| 354 |
+
num_bytes: 7411400
|
| 355 |
+
num_examples: 15531
|
| 356 |
+
download_size: 30037790
|
| 357 |
+
dataset_size: 161674104
|
| 358 |
+
- config_name: en_lv
|
| 359 |
+
features:
|
| 360 |
+
- name: client_id
|
| 361 |
+
dtype: string
|
| 362 |
+
- name: file
|
| 363 |
+
dtype: string
|
| 364 |
+
- name: sentence
|
| 365 |
+
dtype: string
|
| 366 |
+
- name: translation
|
| 367 |
+
dtype: string
|
| 368 |
+
- name: id
|
| 369 |
+
dtype: string
|
| 370 |
+
splits:
|
| 371 |
+
- name: train
|
| 372 |
+
num_bytes: 109532576
|
| 373 |
+
num_examples: 289430
|
| 374 |
+
- name: validation
|
| 375 |
+
num_bytes: 5905197
|
| 376 |
+
num_examples: 15531
|
| 377 |
+
- name: test
|
| 378 |
+
num_bytes: 5625189
|
| 379 |
+
num_examples: 15531
|
| 380 |
+
download_size: 24573927
|
| 381 |
+
dataset_size: 121062962
|
| 382 |
+
- config_name: en_ja
|
| 383 |
+
features:
|
| 384 |
+
- name: client_id
|
| 385 |
+
dtype: string
|
| 386 |
+
- name: file
|
| 387 |
+
dtype: string
|
| 388 |
+
- name: sentence
|
| 389 |
+
dtype: string
|
| 390 |
+
- name: translation
|
| 391 |
+
dtype: string
|
| 392 |
+
- name: id
|
| 393 |
+
dtype: string
|
| 394 |
+
splits:
|
| 395 |
+
- name: train
|
| 396 |
+
num_bytes: 114741253
|
| 397 |
+
num_examples: 289430
|
| 398 |
+
- name: validation
|
| 399 |
+
num_bytes: 6161930
|
| 400 |
+
num_examples: 15531
|
| 401 |
+
- name: test
|
| 402 |
+
num_bytes: 5883608
|
| 403 |
+
num_examples: 15531
|
| 404 |
+
download_size: 26664247
|
| 405 |
+
dataset_size: 126786791
|
| 406 |
+
- config_name: fr_en
|
| 407 |
+
features:
|
| 408 |
+
- name: client_id
|
| 409 |
+
dtype: string
|
| 410 |
+
- name: file
|
| 411 |
+
dtype: string
|
| 412 |
+
- name: sentence
|
| 413 |
+
dtype: string
|
| 414 |
+
- name: translation
|
| 415 |
+
dtype: string
|
| 416 |
+
- name: id
|
| 417 |
+
dtype: string
|
| 418 |
+
splits:
|
| 419 |
+
- name: train
|
| 420 |
+
num_bytes: 75792665
|
| 421 |
+
num_examples: 207374
|
| 422 |
+
- name: validation
|
| 423 |
+
num_bytes: 5487082
|
| 424 |
+
num_examples: 14760
|
| 425 |
+
- name: test
|
| 426 |
+
num_bytes: 5525498
|
| 427 |
+
num_examples: 14760
|
| 428 |
+
download_size: 7282129
|
| 429 |
+
dataset_size: 86805245
|
| 430 |
+
- config_name: de_en
|
| 431 |
+
features:
|
| 432 |
+
- name: client_id
|
| 433 |
+
dtype: string
|
| 434 |
+
- name: file
|
| 435 |
+
dtype: string
|
| 436 |
+
- name: sentence
|
| 437 |
+
dtype: string
|
| 438 |
+
- name: translation
|
| 439 |
+
dtype: string
|
| 440 |
+
- name: id
|
| 441 |
+
dtype: string
|
| 442 |
+
splits:
|
| 443 |
+
- name: train
|
| 444 |
+
num_bytes: 47678171
|
| 445 |
+
num_examples: 127834
|
| 446 |
+
- name: validation
|
| 447 |
+
num_bytes: 5106253
|
| 448 |
+
num_examples: 13511
|
| 449 |
+
- name: test
|
| 450 |
+
num_bytes: 5066500
|
| 451 |
+
num_examples: 13511
|
| 452 |
+
download_size: 9926797
|
| 453 |
+
dataset_size: 57850924
|
| 454 |
+
- config_name: es_en
|
| 455 |
+
features:
|
| 456 |
+
- name: client_id
|
| 457 |
+
dtype: string
|
| 458 |
+
- name: file
|
| 459 |
+
dtype: string
|
| 460 |
+
- name: sentence
|
| 461 |
+
dtype: string
|
| 462 |
+
- name: translation
|
| 463 |
+
dtype: string
|
| 464 |
+
- name: id
|
| 465 |
+
dtype: string
|
| 466 |
+
splits:
|
| 467 |
+
- name: train
|
| 468 |
+
num_bytes: 29152515
|
| 469 |
+
num_examples: 79015
|
| 470 |
+
- name: validation
|
| 471 |
+
num_bytes: 4974593
|
| 472 |
+
num_examples: 13221
|
| 473 |
+
- name: test
|
| 474 |
+
num_bytes: 4983920
|
| 475 |
+
num_examples: 13221
|
| 476 |
+
download_size: 3202080
|
| 477 |
+
dataset_size: 39111028
|
| 478 |
+
- config_name: ca_en
|
| 479 |
+
features:
|
| 480 |
+
- name: client_id
|
| 481 |
+
dtype: string
|
| 482 |
+
- name: file
|
| 483 |
+
dtype: string
|
| 484 |
+
- name: sentence
|
| 485 |
+
dtype: string
|
| 486 |
+
- name: translation
|
| 487 |
+
dtype: string
|
| 488 |
+
- name: id
|
| 489 |
+
dtype: string
|
| 490 |
+
splits:
|
| 491 |
+
- name: train
|
| 492 |
+
num_bytes: 35902579
|
| 493 |
+
num_examples: 95854
|
| 494 |
+
- name: validation
|
| 495 |
+
num_bytes: 4798435
|
| 496 |
+
num_examples: 12730
|
| 497 |
+
- name: test
|
| 498 |
+
num_bytes: 4804941
|
| 499 |
+
num_examples: 12730
|
| 500 |
+
download_size: 5021926
|
| 501 |
+
dataset_size: 45505955
|
| 502 |
+
- config_name: it_en
|
| 503 |
+
features:
|
| 504 |
+
- name: client_id
|
| 505 |
+
dtype: string
|
| 506 |
+
- name: file
|
| 507 |
+
dtype: string
|
| 508 |
+
- name: sentence
|
| 509 |
+
dtype: string
|
| 510 |
+
- name: translation
|
| 511 |
+
dtype: string
|
| 512 |
+
- name: id
|
| 513 |
+
dtype: string
|
| 514 |
+
splits:
|
| 515 |
+
- name: train
|
| 516 |
+
num_bytes: 11952709
|
| 517 |
+
num_examples: 31698
|
| 518 |
+
- name: validation
|
| 519 |
+
num_bytes: 3393315
|
| 520 |
+
num_examples: 8940
|
| 521 |
+
- name: test
|
| 522 |
+
num_bytes: 3412207
|
| 523 |
+
num_examples: 8951
|
| 524 |
+
download_size: 1691247
|
| 525 |
+
dataset_size: 18758231
|
| 526 |
+
- config_name: ru_en
|
| 527 |
+
features:
|
| 528 |
+
- name: client_id
|
| 529 |
+
dtype: string
|
| 530 |
+
- name: file
|
| 531 |
+
dtype: string
|
| 532 |
+
- name: sentence
|
| 533 |
+
dtype: string
|
| 534 |
+
- name: translation
|
| 535 |
+
dtype: string
|
| 536 |
+
- name: id
|
| 537 |
+
dtype: string
|
| 538 |
+
splits:
|
| 539 |
+
- name: train
|
| 540 |
+
num_bytes: 5610194
|
| 541 |
+
num_examples: 12112
|
| 542 |
+
- name: validation
|
| 543 |
+
num_bytes: 2819414
|
| 544 |
+
num_examples: 6110
|
| 545 |
+
- name: test
|
| 546 |
+
num_bytes: 2923961
|
| 547 |
+
num_examples: 6300
|
| 548 |
+
download_size: 1443078
|
| 549 |
+
dataset_size: 11353569
|
| 550 |
+
- config_name: zh-CN_en
|
| 551 |
+
features:
|
| 552 |
+
- name: client_id
|
| 553 |
+
dtype: string
|
| 554 |
+
- name: file
|
| 555 |
+
dtype: string
|
| 556 |
+
- name: sentence
|
| 557 |
+
dtype: string
|
| 558 |
+
- name: translation
|
| 559 |
+
dtype: string
|
| 560 |
+
- name: id
|
| 561 |
+
dtype: string
|
| 562 |
+
splits:
|
| 563 |
+
- name: train
|
| 564 |
+
num_bytes: 2791288
|
| 565 |
+
num_examples: 7085
|
| 566 |
+
- name: validation
|
| 567 |
+
num_bytes: 1918796
|
| 568 |
+
num_examples: 4843
|
| 569 |
+
- name: test
|
| 570 |
+
num_bytes: 1908633
|
| 571 |
+
num_examples: 4898
|
| 572 |
+
download_size: 587550
|
| 573 |
+
dataset_size: 6618717
|
| 574 |
+
- config_name: pt_en
|
| 575 |
+
features:
|
| 576 |
+
- name: client_id
|
| 577 |
+
dtype: string
|
| 578 |
+
- name: file
|
| 579 |
+
dtype: string
|
| 580 |
+
- name: sentence
|
| 581 |
+
dtype: string
|
| 582 |
+
- name: translation
|
| 583 |
+
dtype: string
|
| 584 |
+
- name: id
|
| 585 |
+
dtype: string
|
| 586 |
+
splits:
|
| 587 |
+
- name: train
|
| 588 |
+
num_bytes: 3095722
|
| 589 |
+
num_examples: 9158
|
| 590 |
+
- name: validation
|
| 591 |
+
num_bytes: 1133404
|
| 592 |
+
num_examples: 3318
|
| 593 |
+
- name: test
|
| 594 |
+
num_bytes: 1384251
|
| 595 |
+
num_examples: 4023
|
| 596 |
+
download_size: 476419
|
| 597 |
+
dataset_size: 5613377
|
| 598 |
+
- config_name: fa_en
|
| 599 |
+
features:
|
| 600 |
+
- name: client_id
|
| 601 |
+
dtype: string
|
| 602 |
+
- name: file
|
| 603 |
+
dtype: string
|
| 604 |
+
- name: sentence
|
| 605 |
+
dtype: string
|
| 606 |
+
- name: translation
|
| 607 |
+
dtype: string
|
| 608 |
+
- name: id
|
| 609 |
+
dtype: string
|
| 610 |
+
splits:
|
| 611 |
+
- name: train
|
| 612 |
+
num_bytes: 18015738
|
| 613 |
+
num_examples: 53949
|
| 614 |
+
- name: validation
|
| 615 |
+
num_bytes: 1241531
|
| 616 |
+
num_examples: 3445
|
| 617 |
+
- name: test
|
| 618 |
+
num_bytes: 1263271
|
| 619 |
+
num_examples: 3445
|
| 620 |
+
download_size: 3864623
|
| 621 |
+
dataset_size: 20520540
|
| 622 |
+
- config_name: et_en
|
| 623 |
+
features:
|
| 624 |
+
- name: client_id
|
| 625 |
+
dtype: string
|
| 626 |
+
- name: file
|
| 627 |
+
dtype: string
|
| 628 |
+
- name: sentence
|
| 629 |
+
dtype: string
|
| 630 |
+
- name: translation
|
| 631 |
+
dtype: string
|
| 632 |
+
- name: id
|
| 633 |
+
dtype: string
|
| 634 |
+
splits:
|
| 635 |
+
- name: train
|
| 636 |
+
num_bytes: 808508
|
| 637 |
+
num_examples: 1782
|
| 638 |
+
- name: validation
|
| 639 |
+
num_bytes: 690694
|
| 640 |
+
num_examples: 1576
|
| 641 |
+
- name: test
|
| 642 |
+
num_bytes: 685375
|
| 643 |
+
num_examples: 1571
|
| 644 |
+
download_size: 246569
|
| 645 |
+
dataset_size: 2184577
|
| 646 |
+
- config_name: mn_en
|
| 647 |
+
features:
|
| 648 |
+
- name: client_id
|
| 649 |
+
dtype: string
|
| 650 |
+
- name: file
|
| 651 |
+
dtype: string
|
| 652 |
+
- name: sentence
|
| 653 |
+
dtype: string
|
| 654 |
+
- name: translation
|
| 655 |
+
dtype: string
|
| 656 |
+
- name: id
|
| 657 |
+
dtype: string
|
| 658 |
+
splits:
|
| 659 |
+
- name: train
|
| 660 |
+
num_bytes: 900588
|
| 661 |
+
num_examples: 2067
|
| 662 |
+
- name: validation
|
| 663 |
+
num_bytes: 765543
|
| 664 |
+
num_examples: 1761
|
| 665 |
+
- name: test
|
| 666 |
+
num_bytes: 762577
|
| 667 |
+
num_examples: 1759
|
| 668 |
+
download_size: 189710
|
| 669 |
+
dataset_size: 2428708
|
| 670 |
+
- config_name: nl_en
|
| 671 |
+
features:
|
| 672 |
+
- name: client_id
|
| 673 |
+
dtype: string
|
| 674 |
+
- name: file
|
| 675 |
+
dtype: string
|
| 676 |
+
- name: sentence
|
| 677 |
+
dtype: string
|
| 678 |
+
- name: translation
|
| 679 |
+
dtype: string
|
| 680 |
+
- name: id
|
| 681 |
+
dtype: string
|
| 682 |
+
splits:
|
| 683 |
+
- name: train
|
| 684 |
+
num_bytes: 2468140
|
| 685 |
+
num_examples: 7108
|
| 686 |
+
- name: validation
|
| 687 |
+
num_bytes: 594458
|
| 688 |
+
num_examples: 1699
|
| 689 |
+
- name: test
|
| 690 |
+
num_bytes: 594979
|
| 691 |
+
num_examples: 1699
|
| 692 |
+
download_size: 543795
|
| 693 |
+
dataset_size: 3657577
|
| 694 |
+
- config_name: tr_en
|
| 695 |
+
features:
|
| 696 |
+
- name: client_id
|
| 697 |
+
dtype: string
|
| 698 |
+
- name: file
|
| 699 |
+
dtype: string
|
| 700 |
+
- name: sentence
|
| 701 |
+
dtype: string
|
| 702 |
+
- name: translation
|
| 703 |
+
dtype: string
|
| 704 |
+
- name: id
|
| 705 |
+
dtype: string
|
| 706 |
+
splits:
|
| 707 |
+
- name: train
|
| 708 |
+
num_bytes: 1391148
|
| 709 |
+
num_examples: 3966
|
| 710 |
+
- name: validation
|
| 711 |
+
num_bytes: 566458
|
| 712 |
+
num_examples: 1624
|
| 713 |
+
- name: test
|
| 714 |
+
num_bytes: 570760
|
| 715 |
+
num_examples: 1629
|
| 716 |
+
download_size: 280904
|
| 717 |
+
dataset_size: 2528366
|
| 718 |
+
- config_name: ar_en
|
| 719 |
+
features:
|
| 720 |
+
- name: client_id
|
| 721 |
+
dtype: string
|
| 722 |
+
- name: file
|
| 723 |
+
dtype: string
|
| 724 |
+
- name: sentence
|
| 725 |
+
dtype: string
|
| 726 |
+
- name: translation
|
| 727 |
+
dtype: string
|
| 728 |
+
- name: id
|
| 729 |
+
dtype: string
|
| 730 |
+
splits:
|
| 731 |
+
- name: train
|
| 732 |
+
num_bytes: 743065
|
| 733 |
+
num_examples: 2283
|
| 734 |
+
- name: validation
|
| 735 |
+
num_bytes: 575077
|
| 736 |
+
num_examples: 1758
|
| 737 |
+
- name: test
|
| 738 |
+
num_bytes: 552356
|
| 739 |
+
num_examples: 1695
|
| 740 |
+
download_size: 109802
|
| 741 |
+
dataset_size: 1870498
|
| 742 |
+
- config_name: sv-SE_en
|
| 743 |
+
features:
|
| 744 |
+
- name: client_id
|
| 745 |
+
dtype: string
|
| 746 |
+
- name: file
|
| 747 |
+
dtype: string
|
| 748 |
+
- name: sentence
|
| 749 |
+
dtype: string
|
| 750 |
+
- name: translation
|
| 751 |
+
dtype: string
|
| 752 |
+
- name: id
|
| 753 |
+
dtype: string
|
| 754 |
+
splits:
|
| 755 |
+
- name: train
|
| 756 |
+
num_bytes: 698800
|
| 757 |
+
num_examples: 2160
|
| 758 |
+
- name: validation
|
| 759 |
+
num_bytes: 438319
|
| 760 |
+
num_examples: 1349
|
| 761 |
+
- name: test
|
| 762 |
+
num_bytes: 517738
|
| 763 |
+
num_examples: 1595
|
| 764 |
+
download_size: 96161
|
| 765 |
+
dataset_size: 1654857
|
| 766 |
+
- config_name: lv_en
|
| 767 |
+
features:
|
| 768 |
+
- name: client_id
|
| 769 |
+
dtype: string
|
| 770 |
+
- name: file
|
| 771 |
+
dtype: string
|
| 772 |
+
- name: sentence
|
| 773 |
+
dtype: string
|
| 774 |
+
- name: translation
|
| 775 |
+
dtype: string
|
| 776 |
+
- name: id
|
| 777 |
+
dtype: string
|
| 778 |
+
splits:
|
| 779 |
+
- name: train
|
| 780 |
+
num_bytes: 747290
|
| 781 |
+
num_examples: 2337
|
| 782 |
+
- name: validation
|
| 783 |
+
num_bytes: 360941
|
| 784 |
+
num_examples: 1125
|
| 785 |
+
- name: test
|
| 786 |
+
num_bytes: 519183
|
| 787 |
+
num_examples: 1629
|
| 788 |
+
download_size: 88836
|
| 789 |
+
dataset_size: 1627414
|
| 790 |
+
- config_name: sl_en
|
| 791 |
+
features:
|
| 792 |
+
- name: client_id
|
| 793 |
+
dtype: string
|
| 794 |
+
- name: file
|
| 795 |
+
dtype: string
|
| 796 |
+
- name: sentence
|
| 797 |
+
dtype: string
|
| 798 |
+
- name: translation
|
| 799 |
+
dtype: string
|
| 800 |
+
- name: id
|
| 801 |
+
dtype: string
|
| 802 |
+
splits:
|
| 803 |
+
- name: train
|
| 804 |
+
num_bytes: 602420
|
| 805 |
+
num_examples: 1843
|
| 806 |
+
- name: validation
|
| 807 |
+
num_bytes: 165977
|
| 808 |
+
num_examples: 509
|
| 809 |
+
- name: test
|
| 810 |
+
num_bytes: 115414
|
| 811 |
+
num_examples: 360
|
| 812 |
+
download_size: 58445
|
| 813 |
+
dataset_size: 883811
|
| 814 |
+
- config_name: ta_en
|
| 815 |
+
features:
|
| 816 |
+
- name: client_id
|
| 817 |
+
dtype: string
|
| 818 |
+
- name: file
|
| 819 |
+
dtype: string
|
| 820 |
+
- name: sentence
|
| 821 |
+
dtype: string
|
| 822 |
+
- name: translation
|
| 823 |
+
dtype: string
|
| 824 |
+
- name: id
|
| 825 |
+
dtype: string
|
| 826 |
+
splits:
|
| 827 |
+
- name: train
|
| 828 |
+
num_bytes: 534564
|
| 829 |
+
num_examples: 1358
|
| 830 |
+
- name: validation
|
| 831 |
+
num_bytes: 150428
|
| 832 |
+
num_examples: 384
|
| 833 |
+
- name: test
|
| 834 |
+
num_bytes: 303843
|
| 835 |
+
num_examples: 786
|
| 836 |
+
download_size: 55659
|
| 837 |
+
dataset_size: 988835
|
| 838 |
+
- config_name: ja_en
|
| 839 |
+
features:
|
| 840 |
+
- name: client_id
|
| 841 |
+
dtype: string
|
| 842 |
+
- name: file
|
| 843 |
+
dtype: string
|
| 844 |
+
- name: sentence
|
| 845 |
+
dtype: string
|
| 846 |
+
- name: translation
|
| 847 |
+
dtype: string
|
| 848 |
+
- name: id
|
| 849 |
+
dtype: string
|
| 850 |
+
splits:
|
| 851 |
+
- name: train
|
| 852 |
+
num_bytes: 396334
|
| 853 |
+
num_examples: 1119
|
| 854 |
+
- name: validation
|
| 855 |
+
num_bytes: 226054
|
| 856 |
+
num_examples: 635
|
| 857 |
+
- name: test
|
| 858 |
+
num_bytes: 241310
|
| 859 |
+
num_examples: 684
|
| 860 |
+
download_size: 54666
|
| 861 |
+
dataset_size: 863698
|
| 862 |
+
- config_name: id_en
|
| 863 |
+
features:
|
| 864 |
+
- name: client_id
|
| 865 |
+
dtype: string
|
| 866 |
+
- name: file
|
| 867 |
+
dtype: string
|
| 868 |
+
- name: sentence
|
| 869 |
+
dtype: string
|
| 870 |
+
- name: translation
|
| 871 |
+
dtype: string
|
| 872 |
+
- name: id
|
| 873 |
+
dtype: string
|
| 874 |
+
splits:
|
| 875 |
+
- name: train
|
| 876 |
+
num_bytes: 406989
|
| 877 |
+
num_examples: 1243
|
| 878 |
+
- name: validation
|
| 879 |
+
num_bytes: 259134
|
| 880 |
+
num_examples: 792
|
| 881 |
+
- name: test
|
| 882 |
+
num_bytes: 277053
|
| 883 |
+
num_examples: 844
|
| 884 |
+
download_size: 51755
|
| 885 |
+
dataset_size: 943176
|
| 886 |
+
- config_name: cy_en
|
| 887 |
+
features:
|
| 888 |
+
- name: client_id
|
| 889 |
+
dtype: string
|
| 890 |
+
- name: file
|
| 891 |
+
dtype: string
|
| 892 |
+
- name: sentence
|
| 893 |
+
dtype: string
|
| 894 |
+
- name: translation
|
| 895 |
+
dtype: string
|
| 896 |
+
- name: id
|
| 897 |
+
dtype: string
|
| 898 |
+
splits:
|
| 899 |
+
- name: train
|
| 900 |
+
num_bytes: 432071
|
| 901 |
+
num_examples: 1241
|
| 902 |
+
- name: validation
|
| 903 |
+
num_bytes: 236107
|
| 904 |
+
num_examples: 690
|
| 905 |
+
- name: test
|
| 906 |
+
num_bytes: 236713
|
| 907 |
+
num_examples: 690
|
| 908 |
+
download_size: 875557
|
| 909 |
+
dataset_size: 904891
|
| 910 |
+
---
|
| 911 |
+
|
| 912 |
+
# Dataset Card for covost2
|
| 913 |
+
|
| 914 |
+
## Table of Contents
|
| 915 |
+
- [Dataset Description](#dataset-description)
|
| 916 |
+
- [Dataset Summary](#dataset-summary)
|
| 917 |
+
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
|
| 918 |
+
- [Languages](#languages)
|
| 919 |
+
- [Dataset Structure](#dataset-structure)
|
| 920 |
+
- [Data Instances](#data-instances)
|
| 921 |
+
- [Data Fields](#data-fields)
|
| 922 |
+
- [Data Splits](#data-splits)
|
| 923 |
+
- [Dataset Creation](#dataset-creation)
|
| 924 |
+
- [Curation Rationale](#curation-rationale)
|
| 925 |
+
- [Source Data](#source-data)
|
| 926 |
+
- [Annotations](#annotations)
|
| 927 |
+
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
| 928 |
+
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
| 929 |
+
- [Social Impact of Dataset](#social-impact-of-dataset)
|
| 930 |
+
- [Discussion of Biases](#discussion-of-biases)
|
| 931 |
+
- [Other Known Limitations](#other-known-limitations)
|
| 932 |
+
- [Additional Information](#additional-information)
|
| 933 |
+
- [Dataset Curators](#dataset-curators)
|
| 934 |
+
- [Licensing Information](#licensing-information)
|
| 935 |
+
- [Citation Information](#citation-information)
|
| 936 |
+
- [Contributions](#contributions)
|
| 937 |
+
|
| 938 |
+
## Dataset Description
|
| 939 |
+
|
| 940 |
+
- **Homepage:** https://github.com/facebookresearch/covost
|
| 941 |
+
- **Repository:** https://github.com/facebookresearch/covost
|
| 942 |
+
- **Paper:** https://arxiv.org/abs/2007.10310
|
| 943 |
+
- **Leaderboard:** [Needs More Information]
|
| 944 |
+
- **Point of Contact:** Changhan Wang (changhan@fb.com), Juan Miguel Pino (juancarabina@fb.com), Jiatao Gu (jgu@fb.com)
|
| 945 |
+
|
| 946 |
+
### Dataset Summary
|
| 947 |
+
|
| 948 |
+
CoVoST 2 is a large-scale multilingual speech translation corpus covering translations from 21 languages into English \
|
| 949 |
+
and from English into 15 languages. The dataset is created using Mozillas open-source Common Voice database of \
|
| 950 |
+
crowdsourced voice recordings. There are 2,900 hours of speech represented in the corpus.
|
| 951 |
+
|
| 952 |
+
### Supported Tasks and Leaderboards
|
| 953 |
+
|
| 954 |
+
`speech-translation`: The dataset can be used for Speech-to-text translation (ST). The model is presented with an audio file in one language and asked to transcribe the audio file to written text in another language. The most common evaluation metric is the BLEU score. Examples can be found at https://github.com/pytorch/fairseq/blob/master/examples/speech_to_text/docs/covost_example.md .
|
| 955 |
+
|
| 956 |
+
### Languages
|
| 957 |
+
|
| 958 |
+
The dataset contains the audio, transcriptions, and translations in the following languages, French, German, Dutch, Russian, Spanish, Italian, Turkish, Persian, Swedish, Mongolian, Chinese, Welsh, Catalan, Slovenian, Estonian, Indonesian, Arabic, Tamil, Portuguese, Latvian, and Japanese.
|
| 959 |
+
|
| 960 |
+
## Dataset Structure
|
| 961 |
+
|
| 962 |
+
### Data Instances
|
| 963 |
+
|
| 964 |
+
A typical data point comprises the path to the audio file, usually called `file`, its transcription, called `sentence`, and the translation in target language called `translation`.
|
| 965 |
+
|
| 966 |
+
```
|
| 967 |
+
{'client_id': 'd277a1f3904ae00b09b73122b87674e7c2c78e08120721f37b5577013ead08d1ea0c053ca5b5c2fb948df2c81f27179aef2c741057a17249205d251a8fe0e658',
|
| 968 |
+
'file': '/home/suraj/projects/fairseq_s2t/covst/dataset/en/clips/common_voice_en_18540003.mp3',
|
| 969 |
+
'audio': {'path': '/home/suraj/projects/fairseq_s2t/covst/dataset/en/clips/common_voice_en_18540003.mp3',
|
| 970 |
+
'array': array([-0.00048828, -0.00018311, -0.00137329, ..., 0.00079346, 0.00091553, 0.00085449], dtype=float32),
|
| 971 |
+
'sampling_rate': 48000},
|
| 972 |
+
'id': 'common_voice_en_18540003',
|
| 973 |
+
'sentence': 'When water is scarce, avoid wasting it.',
|
| 974 |
+
'translation': 'Wenn Wasser knapp ist, verschwenden Sie es nicht.'}
|
| 975 |
+
```
|
| 976 |
+
|
| 977 |
+
### Data Fields
|
| 978 |
+
|
| 979 |
+
- file: A path to the downloaded audio file in .mp3 format.
|
| 980 |
+
|
| 981 |
+
- audio: A dictionary containing the path to the downloaded audio file, the decoded audio array, and the sampling rate. Note that when accessing the audio column: `dataset[0]["audio"]` the audio file is automatically decoded and resampled to `dataset.features["audio"].sampling_rate`. Decoding and resampling of a large number of audio files might take a significant amount of time. Thus it is important to first query the sample index before the `"audio"` column, *i.e.* `dataset[0]["audio"]` should **always** be preferred over `dataset["audio"][0]`.
|
| 982 |
+
|
| 983 |
+
- sentence: The transcription of the audio file in source language.
|
| 984 |
+
|
| 985 |
+
- translation: The transcription of the audio file in the target language.
|
| 986 |
+
|
| 987 |
+
- id: unique id of the data sample.
|
| 988 |
+
|
| 989 |
+
### Data Splits
|
| 990 |
+
|
| 991 |
+
| config | train | validation | test |
|
| 992 |
+
|----------|--------|------------|-------|
|
| 993 |
+
| en_de | 289430 | 15531 | 15531 |
|
| 994 |
+
| en_tr | 289430 | 15531 | 15531 |
|
| 995 |
+
| en_fa | 289430 | 15531 | 15531 |
|
| 996 |
+
| en_sv-SE | 289430 | 15531 | 15531 |
|
| 997 |
+
| en_mn | 289430 | 15531 | 15531 |
|
| 998 |
+
| en_zh-CN | 289430 | 15531 | 15531 |
|
| 999 |
+
| en_cy | 289430 | 15531 | 15531 |
|
| 1000 |
+
| en_ca | 289430 | 15531 | 15531 |
|
| 1001 |
+
| en_sl | 289430 | 15531 | 15531 |
|
| 1002 |
+
| en_et | 289430 | 15531 | 15531 |
|
| 1003 |
+
| en_id | 289430 | 15531 | 15531 |
|
| 1004 |
+
| en_ar | 289430 | 15531 | 15531 |
|
| 1005 |
+
| en_ta | 289430 | 15531 | 15531 |
|
| 1006 |
+
| en_lv | 289430 | 15531 | 15531 |
|
| 1007 |
+
| en_ja | 289430 | 15531 | 15531 |
|
| 1008 |
+
| fr_en | 207374 | 14760 | 14760 |
|
| 1009 |
+
| de_en | 127834 | 13511 | 13511 |
|
| 1010 |
+
| es_en | 79015 | 13221 | 13221 |
|
| 1011 |
+
| ca_en | 95854 | 12730 | 12730 |
|
| 1012 |
+
| it_en | 31698 | 8940 | 8951 |
|
| 1013 |
+
| ru_en | 12112 | 6110 | 6300 |
|
| 1014 |
+
| zh-CN_en | 7085 | 4843 | 4898 |
|
| 1015 |
+
| pt_en | 9158 | 3318 | 4023 |
|
| 1016 |
+
| fa_en | 53949 | 3445 | 3445 |
|
| 1017 |
+
| et_en | 1782 | 1576 | 1571 |
|
| 1018 |
+
| mn_en | 2067 | 1761 | 1759 |
|
| 1019 |
+
| nl_en | 7108 | 1699 | 1699 |
|
| 1020 |
+
| tr_en | 3966 | 1624 | 1629 |
|
| 1021 |
+
| ar_en | 2283 | 1758 | 1695 |
|
| 1022 |
+
| sv-SE_en | 2160 | 1349 | 1595 |
|
| 1023 |
+
| lv_en | 2337 | 1125 | 1629 |
|
| 1024 |
+
| sl_en | 1843 | 509 | 360 |
|
| 1025 |
+
| ta_en | 1358 | 384 | 786 |
|
| 1026 |
+
| ja_en | 1119 | 635 | 684 |
|
| 1027 |
+
| id_en | 1243 | 792 | 844 |
|
| 1028 |
+
| cy_en | 1241 | 690 | 690 |
|
| 1029 |
+
|
| 1030 |
+
|
| 1031 |
+
## Dataset Creation
|
| 1032 |
+
|
| 1033 |
+
### Curation Rationale
|
| 1034 |
+
|
| 1035 |
+
[Needs More Information]
|
| 1036 |
+
|
| 1037 |
+
### Source Data
|
| 1038 |
+
|
| 1039 |
+
#### Initial Data Collection and Normalization
|
| 1040 |
+
|
| 1041 |
+
[Needs More Information]
|
| 1042 |
+
|
| 1043 |
+
#### Who are the source language producers?
|
| 1044 |
+
|
| 1045 |
+
[Needs More Information]
|
| 1046 |
+
|
| 1047 |
+
### Annotations
|
| 1048 |
+
|
| 1049 |
+
#### Annotation process
|
| 1050 |
+
|
| 1051 |
+
[Needs More Information]
|
| 1052 |
+
|
| 1053 |
+
#### Who are the annotators?
|
| 1054 |
+
|
| 1055 |
+
[Needs More Information]
|
| 1056 |
+
|
| 1057 |
+
### Personal and Sensitive Information
|
| 1058 |
+
|
| 1059 |
+
The dataset consists of people who have donated their voice online. You agree to not attempt to determine the identity of speakers in this dataset.
|
| 1060 |
+
|
| 1061 |
+
## Considerations for Using the Data
|
| 1062 |
+
|
| 1063 |
+
### Social Impact of Dataset
|
| 1064 |
+
|
| 1065 |
+
[Needs More Information]
|
| 1066 |
+
|
| 1067 |
+
### Discussion of Biases
|
| 1068 |
+
|
| 1069 |
+
[Needs More Information]
|
| 1070 |
+
|
| 1071 |
+
### Other Known Limitations
|
| 1072 |
+
|
| 1073 |
+
[Needs More Information]
|
| 1074 |
+
|
| 1075 |
+
## Additional Information
|
| 1076 |
+
|
| 1077 |
+
### Dataset Curators
|
| 1078 |
+
|
| 1079 |
+
[Needs More Information]
|
| 1080 |
+
|
| 1081 |
+
### Licensing Information
|
| 1082 |
+
|
| 1083 |
+
[CC BY-NC 4.0](https://github.com/facebookresearch/covost/blob/main/LICENSE)
|
| 1084 |
+
|
| 1085 |
+
### Citation Information
|
| 1086 |
+
|
| 1087 |
+
```
|
| 1088 |
+
@misc{wang2020covost,
|
| 1089 |
+
title={CoVoST 2: A Massively Multilingual Speech-to-Text Translation Corpus},
|
| 1090 |
+
author={Changhan Wang and Anne Wu and Juan Pino},
|
| 1091 |
+
year={2020},
|
| 1092 |
+
eprint={2007.10310},
|
| 1093 |
+
archivePrefix={arXiv},
|
| 1094 |
+
primaryClass={cs.CL}
|
| 1095 |
+
```
|
| 1096 |
+
|
| 1097 |
+
### Contributions
|
| 1098 |
+
|
| 1099 |
+
Thanks to [@patil-suraj](https://github.com/patil-suraj) for adding this dataset.
|
covost2.py
ADDED
|
@@ -0,0 +1,194 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding=utf-8
|
| 2 |
+
# Copyright 2021 The TensorFlow Datasets Authors and the 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 |
+
|
| 18 |
+
import csv
|
| 19 |
+
import os
|
| 20 |
+
|
| 21 |
+
import pandas as pd
|
| 22 |
+
|
| 23 |
+
import datasets
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
_VERSION = "1.0.0"
|
| 27 |
+
|
| 28 |
+
_CITATION = """
|
| 29 |
+
@misc{wang2020covost,
|
| 30 |
+
title={CoVoST 2: A Massively Multilingual Speech-to-Text Translation Corpus},
|
| 31 |
+
author={Changhan Wang and Anne Wu and Juan Pino},
|
| 32 |
+
year={2020},
|
| 33 |
+
eprint={2007.10310},
|
| 34 |
+
archivePrefix={arXiv},
|
| 35 |
+
primaryClass={cs.CL}
|
| 36 |
+
"""
|
| 37 |
+
|
| 38 |
+
_DESCRIPTION = """
|
| 39 |
+
CoVoST 2, a large-scale multilingual speech translation corpus covering translations from 21 languages into English \
|
| 40 |
+
and from English into 15 languages. The dataset is created using Mozilla’s open source Common Voice database of \
|
| 41 |
+
crowdsourced voice recordings.
|
| 42 |
+
|
| 43 |
+
Note that in order to limit the required storage for preparing this dataset, the audio
|
| 44 |
+
is stored in the .mp3 format and is not converted to a float32 array. To convert, the audio
|
| 45 |
+
file to a float32 array, please make use of the `.map()` function as follows:
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
```python
|
| 49 |
+
import torchaudio
|
| 50 |
+
|
| 51 |
+
def map_to_array(batch):
|
| 52 |
+
speech_array, _ = torchaudio.load(batch["file"])
|
| 53 |
+
batch["speech"] = speech_array.numpy()
|
| 54 |
+
return batch
|
| 55 |
+
|
| 56 |
+
dataset = dataset.map(map_to_array, remove_columns=["file"])
|
| 57 |
+
```
|
| 58 |
+
"""
|
| 59 |
+
|
| 60 |
+
_HOMEPAGE = "https://github.com/facebookresearch/covost"
|
| 61 |
+
|
| 62 |
+
# fmt: off
|
| 63 |
+
XX_EN_LANGUAGES = ["fr", "de", "es", "ca", "it", "ru", "zh-CN", "pt", "fa", "et", "mn", "nl", "tr", "ar", "sv-SE", "lv", "sl", "ta", "ja", "id", "cy"]
|
| 64 |
+
EN_XX_LANGUAGES = ["de", "tr", "fa", "sv-SE", "mn", "zh-CN", "cy", "ca", "sl", "et", "id", "ar", "ta", "lv", "ja"]
|
| 65 |
+
# fmt: on
|
| 66 |
+
|
| 67 |
+
COVOST_URL_TEMPLATE = "https://dl.fbaipublicfiles.com/covost/covost_v2.{src_lang}_{tgt_lang}.tsv.tar.gz"
|
| 68 |
+
COVOST_KO_URL_TEMPLATE = "https://raw.githubusercontent.com/junnei/covost/refs/heads/main/data/{src_lang}_{tgt_lang}/covost_v2.{src_lang}_{tgt_lang}.tsv"
|
| 69 |
+
|
| 70 |
+
def _get_builder_configs():
|
| 71 |
+
builder_configs = [
|
| 72 |
+
datasets.BuilderConfig(name=f"en_{lang}", version=datasets.Version(_VERSION)) for lang in EN_XX_LANGUAGES
|
| 73 |
+
]
|
| 74 |
+
|
| 75 |
+
builder_configs += [
|
| 76 |
+
datasets.BuilderConfig(name=f"{lang}_en", version=datasets.Version(_VERSION)) for lang in XX_EN_LANGUAGES
|
| 77 |
+
]
|
| 78 |
+
return builder_configs
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
class Covost2(datasets.GeneratorBasedBuilder):
|
| 82 |
+
"""CoVOST2 Dataset."""
|
| 83 |
+
|
| 84 |
+
VERSION = datasets.Version(_VERSION)
|
| 85 |
+
|
| 86 |
+
BUILDER_CONFIGS = _get_builder_configs()
|
| 87 |
+
|
| 88 |
+
@property
|
| 89 |
+
def manual_download_instructions(self):
|
| 90 |
+
return f"""Please download the Common Voice Corpus 4 in {self.config.name.split('_')[0]} from https://commonvoice.mozilla.org/en/datasets and unpack it with `tar xvzf {self.config.name.split('_')[0]}.tar`. Make sure to pass the path to the directory in which you unpacked the downloaded file as `data_dir`: `datasets.load_dataset('covost2', data_dir="path/to/dir")`
|
| 91 |
+
"""
|
| 92 |
+
|
| 93 |
+
def _info(self):
|
| 94 |
+
return datasets.DatasetInfo(
|
| 95 |
+
description=_DESCRIPTION,
|
| 96 |
+
features=datasets.Features(
|
| 97 |
+
client_id=datasets.Value("string"),
|
| 98 |
+
file=datasets.Value("string"),
|
| 99 |
+
audio=datasets.Audio(sampling_rate=16_000),
|
| 100 |
+
sentence=datasets.Value("string"),
|
| 101 |
+
translation=datasets.Value("string"),
|
| 102 |
+
id=datasets.Value("string"),
|
| 103 |
+
),
|
| 104 |
+
supervised_keys=("file", "translation"),
|
| 105 |
+
homepage=_HOMEPAGE,
|
| 106 |
+
citation=_CITATION,
|
| 107 |
+
)
|
| 108 |
+
|
| 109 |
+
def _split_generators(self, dl_manager):
|
| 110 |
+
data_root = os.path.abspath(os.path.expanduser(dl_manager.manual_dir))
|
| 111 |
+
|
| 112 |
+
source_lang, target_lang = self.config.name.split("_")
|
| 113 |
+
|
| 114 |
+
if not os.path.exists(data_root):
|
| 115 |
+
raise FileNotFoundError(
|
| 116 |
+
f"You are trying to load the {self.config.name} speech translation dataset. "
|
| 117 |
+
f"It is required that you manually download the input speech data {source_lang}. "
|
| 118 |
+
f"Manual download instructions: {self.manual_download_instructions}"
|
| 119 |
+
)
|
| 120 |
+
if "ko" in [source_lang, target_lang]:
|
| 121 |
+
covost_url = COVOST_KO_URL_TEMPLATE.format(src_lang=source_lang, tgt_lang=target_lang)
|
| 122 |
+
else:
|
| 123 |
+
covost_url = COVOST_URL_TEMPLATE.format(src_lang=source_lang, tgt_lang=target_lang)
|
| 124 |
+
extracted_path = dl_manager.download_and_extract(covost_url)
|
| 125 |
+
|
| 126 |
+
covost_tsv_path = os.path.join(extracted_path, f"covost_v2.{source_lang}_{target_lang}.tsv")
|
| 127 |
+
cv_tsv_path = os.path.join(data_root, "validated.tsv")
|
| 128 |
+
|
| 129 |
+
return [
|
| 130 |
+
datasets.SplitGenerator(
|
| 131 |
+
name=datasets.Split.TRAIN,
|
| 132 |
+
gen_kwargs={
|
| 133 |
+
"source_path": data_root,
|
| 134 |
+
"covost_tsv_path": covost_tsv_path,
|
| 135 |
+
"cv_tsv_path": cv_tsv_path,
|
| 136 |
+
"split": "train",
|
| 137 |
+
},
|
| 138 |
+
),
|
| 139 |
+
datasets.SplitGenerator(
|
| 140 |
+
name=datasets.Split.VALIDATION,
|
| 141 |
+
gen_kwargs={
|
| 142 |
+
"source_path": data_root,
|
| 143 |
+
"covost_tsv_path": covost_tsv_path,
|
| 144 |
+
"cv_tsv_path": cv_tsv_path,
|
| 145 |
+
"split": "dev",
|
| 146 |
+
},
|
| 147 |
+
),
|
| 148 |
+
datasets.SplitGenerator(
|
| 149 |
+
name=datasets.Split.TEST,
|
| 150 |
+
gen_kwargs={
|
| 151 |
+
"source_path": data_root,
|
| 152 |
+
"covost_tsv_path": covost_tsv_path,
|
| 153 |
+
"cv_tsv_path": cv_tsv_path,
|
| 154 |
+
"split": "test",
|
| 155 |
+
},
|
| 156 |
+
),
|
| 157 |
+
]
|
| 158 |
+
|
| 159 |
+
def _generate_examples(self, source_path, covost_tsv_path, cv_tsv_path, split):
|
| 160 |
+
covost_tsv = self._load_df_from_tsv(covost_tsv_path)
|
| 161 |
+
cv_tsv = self._load_df_from_tsv(cv_tsv_path)
|
| 162 |
+
|
| 163 |
+
df = pd.merge(
|
| 164 |
+
left=cv_tsv[["path", "sentence", "client_id"]],
|
| 165 |
+
right=covost_tsv[["path", "translation", "split"]],
|
| 166 |
+
how="inner",
|
| 167 |
+
on="path",
|
| 168 |
+
)
|
| 169 |
+
|
| 170 |
+
if split == "train":
|
| 171 |
+
df = df[(df["split"] == "train") | (df["split"] == "train_covost")]
|
| 172 |
+
else:
|
| 173 |
+
df = df[df["split"] == split]
|
| 174 |
+
|
| 175 |
+
for i, row in df.iterrows():
|
| 176 |
+
yield i, {
|
| 177 |
+
"id": row["path"].replace(".mp3", ""),
|
| 178 |
+
"client_id": row["client_id"],
|
| 179 |
+
"sentence": row["sentence"],
|
| 180 |
+
"translation": row["translation"],
|
| 181 |
+
"file": os.path.join(source_path, "clips", row["path"]),
|
| 182 |
+
"audio": os.path.join(source_path, "clips", row["path"]),
|
| 183 |
+
}
|
| 184 |
+
|
| 185 |
+
def _load_df_from_tsv(self, path):
|
| 186 |
+
return pd.read_csv(
|
| 187 |
+
path,
|
| 188 |
+
sep="\t",
|
| 189 |
+
header=0,
|
| 190 |
+
encoding="utf-8",
|
| 191 |
+
escapechar="\\",
|
| 192 |
+
quoting=csv.QUOTE_NONE,
|
| 193 |
+
na_filter=False,
|
| 194 |
+
)
|