Convert dataset to Parquet
#1
by
carlosdanielhernandezmena
- opened
- README.md +39 -0
- data/dev.tsv +0 -11
- data/dev/female/common_voice_es_19666365.flac +0 -3
- data/dev/female/common_voice_es_19942148.flac +0 -3
- data/dev/male/common_voice_es_18328658.flac +0 -3
- data/dev/male/common_voice_es_19026674.flac +0 -3
- data/dev/male/common_voice_es_19159450.flac +0 -3
- data/dev/male/common_voice_es_19597257.flac +0 -3
- data/dev/male/common_voice_es_19604077.flac +0 -3
- data/test.tsv +0 -11
- data/test/female/common_voice_es_19131994.flac +0 -3
- data/test/female/common_voice_es_19629310.flac +0 -3
- data/test/female/common_voice_es_19699841.flac +0 -3
- data/test/female/common_voice_es_19960886.flac +0 -3
- data/test/female/common_voice_es_20260627.flac +0 -3
- data/test/male/common_voice_es_18307761.flac +0 -3
- data/test/male/common_voice_es_18569707.flac +0 -3
- data/test/male/common_voice_es_18831947.flac +0 -3
- data/test/male/common_voice_es_19523672.flac +0 -3
- data/test/male/common_voice_es_19610763.flac +0 -3
- data/train.tsv +0 -21
- data/train/female/common_voice_es_20711016.flac +0 -3
- data/train/female/common_voice_es_20711252.flac +0 -3
- data/train/female/common_voice_es_20717545.flac +0 -3
- data/train/female/common_voice_es_20717953.flac +0 -3
- data/train/female/common_voice_es_20722210.flac +0 -3
- data/train/female/common_voice_es_20722849.flac +0 -3
- data/train/female/common_voice_es_20724424.flac +0 -3
- data/train/female/common_voice_es_20725001.flac +0 -3
- data/train/female/common_voice_es_20931278.flac +0 -3
- data/train/female/common_voice_es_20932253.flac +0 -3
- data/train/male/common_voice_es_18306568.flac +0 -3
- data/train/male/common_voice_es_18320698.flac +0 -3
- data/train/male/common_voice_es_19596707.flac +0 -3
- data/train/male/common_voice_es_20501506.flac +0 -3
- data/train/male/common_voice_es_20507096.flac +0 -3
- data/train/male/common_voice_es_20511043.flac +0 -3
- data/train/male/common_voice_es_21469616.flac +0 -3
- data/train/male/common_voice_es_21486095.flac +0 -3
- data/train/male/common_voice_es_21543608.flac +0 -3
- data/train/male/common_voice_es_21580953.flac +0 -3
- dummy_corpus_asr_es.py +0 -155
- data/dev/female/common_voice_es_19738526.flac → dummy_corpus_asr_es/test-00000-of-00001.parquet +2 -2
- data/dev/female/common_voice_es_19603417.flac → dummy_corpus_asr_es/train-00000-of-00001.parquet +2 -2
- data/dev/female/common_voice_es_18549611.flac → dummy_corpus_asr_es/validation-00000-of-00001.parquet +2 -2
README.md
CHANGED
@@ -1,3 +1,42 @@
|
|
1 |
---
|
2 |
license: cc-by-4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
1 |
---
|
2 |
license: cc-by-4.0
|
3 |
+
dataset_info:
|
4 |
+
config_name: dummy_corpus_asr_es
|
5 |
+
features:
|
6 |
+
- name: audio_id
|
7 |
+
dtype: string
|
8 |
+
- name: audio
|
9 |
+
dtype:
|
10 |
+
audio:
|
11 |
+
sampling_rate: 16000
|
12 |
+
- name: split
|
13 |
+
dtype: string
|
14 |
+
- name: gender
|
15 |
+
dtype: string
|
16 |
+
- name: normalized_text
|
17 |
+
dtype: string
|
18 |
+
- name: relative_path
|
19 |
+
dtype: string
|
20 |
+
splits:
|
21 |
+
- name: train
|
22 |
+
num_bytes: 1557671.0
|
23 |
+
num_examples: 20
|
24 |
+
- name: validation
|
25 |
+
num_bytes: 974706.0
|
26 |
+
num_examples: 10
|
27 |
+
- name: test
|
28 |
+
num_bytes: 809111.0
|
29 |
+
num_examples: 10
|
30 |
+
download_size: 3351595
|
31 |
+
dataset_size: 3341488.0
|
32 |
+
configs:
|
33 |
+
- config_name: dummy_corpus_asr_es
|
34 |
+
data_files:
|
35 |
+
- split: train
|
36 |
+
path: dummy_corpus_asr_es/train-*
|
37 |
+
- split: validation
|
38 |
+
path: dummy_corpus_asr_es/validation-*
|
39 |
+
- split: test
|
40 |
+
path: dummy_corpus_asr_es/test-*
|
41 |
+
default: true
|
42 |
---
|
data/dev.tsv
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
audio_id split gender normalized_text relative_path
|
2 |
-
common_voice_es_18328658 dev male ni siquiera pienses en eso vaquero o sí muchacho rudo data/dev/male/common_voice_es_18328658.flac
|
3 |
-
common_voice_es_18549611 dev female invitados del cumpleaños a las tres en punto cálmense todos data/dev/female/common_voice_es_18549611.flac
|
4 |
-
common_voice_es_19026674 dev male en la supervivencia de la especie data/dev/male/common_voice_es_19026674.flac
|
5 |
-
common_voice_es_19159450 dev male antes de la llegada de los europeos era fue una potencia política en halmahera data/dev/male/common_voice_es_19159450.flac
|
6 |
-
common_voice_es_19597257 dev male la liga quedó interrumpida en los últimos años de la segunda guerra mundial data/dev/male/common_voice_es_19597257.flac
|
7 |
-
common_voice_es_19603417 dev female desde entonces ha participado en numerosas novilladas sin picadores data/dev/female/common_voice_es_19603417.flac
|
8 |
-
common_voice_es_19604077 dev male apareció en la película toma estas alas rotas data/dev/male/common_voice_es_19604077.flac
|
9 |
-
common_voice_es_19666365 dev female sin embargo a lo largo del capítulo subyace una gran pregunta data/dev/female/common_voice_es_19666365.flac
|
10 |
-
common_voice_es_19738526 dev female fue su reino en su tiempo el más poderoso e influyente de europa occidental data/dev/female/common_voice_es_19738526.flac
|
11 |
-
common_voice_es_19942148 dev female en las últimas versiones de final cut pro apple inc data/dev/female/common_voice_es_19942148.flac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data/dev/female/common_voice_es_19666365.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:b604d3378708bf445a127480fe1478c57a1ae16d0fe2a0fbfe0f001459131adf
|
3 |
-
size 101702
|
|
|
|
|
|
|
|
data/dev/female/common_voice_es_19942148.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:e81e17586a8c4a07defec895638522b75534191476fa5ccc81a5c85cadbe9cc9
|
3 |
-
size 78394
|
|
|
|
|
|
|
|
data/dev/male/common_voice_es_18328658.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:6d7ba1fd6b41ecd5080d761d371784460a08610470baeca74c1b84f00e0b0a66
|
3 |
-
size 67065
|
|
|
|
|
|
|
|
data/dev/male/common_voice_es_19026674.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:c90b978dc5cd1f761a11b369f76971615dd4b6e826bf9a1dd2f92e6bfb387869
|
3 |
-
size 53585
|
|
|
|
|
|
|
|
data/dev/male/common_voice_es_19159450.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:1490a7c567dd0f4738d5149ee2e1ec26f87a6ec3a2a560453904d9bbfc536593
|
3 |
-
size 104890
|
|
|
|
|
|
|
|
data/dev/male/common_voice_es_19597257.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:282f55ef6f9941df95fcba0c47296c2114cddaa9956c8bfd7f233f8d6842f6c1
|
3 |
-
size 111568
|
|
|
|
|
|
|
|
data/dev/male/common_voice_es_19604077.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:eb7df8128ca9223f11e503f1a12837bbbe7cd5d698ee5e0d1a168217a7d0623a
|
3 |
-
size 125374
|
|
|
|
|
|
|
|
data/test.tsv
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
audio_id split gender normalized_text relative_path
|
2 |
-
common_voice_es_18307761 test male y calló tal vez esperando una disculpa amante pero yo preferí guardar silencio data/test/male/common_voice_es_18307761.flac
|
3 |
-
common_voice_es_18569707 test male esos hombres son profesionales son los mejores data/test/male/common_voice_es_18569707.flac
|
4 |
-
common_voice_es_18831947 test male uno levanta la caza y otro la mata data/test/male/common_voice_es_18831947.flac
|
5 |
-
common_voice_es_19131994 test female ante esta situación el oficial mandó prender fuego a la casa data/test/female/common_voice_es_19131994.flac
|
6 |
-
common_voice_es_19523672 test male fue vicario apostólico del uruguay data/test/male/common_voice_es_19523672.flac
|
7 |
-
common_voice_es_19610763 test male se desempeñó como mediocampista ofensivo data/test/male/common_voice_es_19610763.flac
|
8 |
-
common_voice_es_19629310 test female esta pieza se retira del paciente junto con la aguja data/test/female/common_voice_es_19629310.flac
|
9 |
-
common_voice_es_19699841 test female el grupo que acabe antes será el ganador data/test/female/common_voice_es_19699841.flac
|
10 |
-
common_voice_es_19960886 test female el gobierno estadounidense no la reconoció como representante del pueblo cubano data/test/female/common_voice_es_19960886.flac
|
11 |
-
common_voice_es_20260627 test female fue redactor en jefe de la página deportiva de el diario el país data/test/female/common_voice_es_20260627.flac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data/test/female/common_voice_es_19131994.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:faaddd2b7b7b375940c68879a5cb2fe033f896e2ebcc55c10e1cea0f07c8e69f
|
3 |
-
size 83182
|
|
|
|
|
|
|
|
data/test/female/common_voice_es_19629310.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:359037f5a2b506fc220c00444dff6e1cbc10c91ec7ad3ed5d5d322f160be32d6
|
3 |
-
size 82767
|
|
|
|
|
|
|
|
data/test/female/common_voice_es_19699841.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:af6583d21afecbc01b6f8bfc69835a901a0e2649de230e4f9d1701f0edaec187
|
3 |
-
size 60956
|
|
|
|
|
|
|
|
data/test/female/common_voice_es_19960886.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:cd89cbdad0b6fa47b8c921746d6dacf338ebfefb2dfdc6f18eafa524a0f6709f
|
3 |
-
size 73491
|
|
|
|
|
|
|
|
data/test/female/common_voice_es_20260627.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:920ec1761a046cc3e19d29a81363e3755251c3a6ebd2ee2a408c604d1abaabc8
|
3 |
-
size 115964
|
|
|
|
|
|
|
|
data/test/male/common_voice_es_18307761.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:b61c9e75a77de737023e860e30b6a1e39fd28c8e36ba2d47b3aca2668ffc2c12
|
3 |
-
size 120045
|
|
|
|
|
|
|
|
data/test/male/common_voice_es_18569707.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:c0bcbf8d9633a903a05a29898a0474f966b66486fdf2be15e743206a0a929bf0
|
3 |
-
size 86157
|
|
|
|
|
|
|
|
data/test/male/common_voice_es_18831947.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:c9b5cb211695dcaeaa2125e6bc7e34334f672f105aa109c185b28c9adcad61ac
|
3 |
-
size 67065
|
|
|
|
|
|
|
|
data/test/male/common_voice_es_19523672.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:c8a5edf69cb5934bb475608a5cdbaa19489d03e918e063fe52b94a8ccf16d886
|
3 |
-
size 26224
|
|
|
|
|
|
|
|
data/test/male/common_voice_es_19610763.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:79d405a00c520bc8915ff3b045b98767502a25250ba05edbc3f48b001d45e08a
|
3 |
-
size 91700
|
|
|
|
|
|
|
|
data/train.tsv
DELETED
@@ -1,21 +0,0 @@
|
|
1 |
-
audio_id split gender normalized_text relative_path
|
2 |
-
common_voice_es_18306568 train male no me hables acerca de importancia data/train/male/common_voice_es_18306568.flac
|
3 |
-
common_voice_es_18320698 train male he restringido el acceso a la cubierta superior data/train/male/common_voice_es_18320698.flac
|
4 |
-
common_voice_es_19596707 train male los orígenes precisos de the hood son desconocidos data/train/male/common_voice_es_19596707.flac
|
5 |
-
common_voice_es_20501506 train male una vez destruidos se pierden inexorablemente data/train/male/common_voice_es_20501506.flac
|
6 |
-
common_voice_es_20507096 train male el resto están todas en inglaterra data/train/male/common_voice_es_20507096.flac
|
7 |
-
common_voice_es_20511043 train male las canciones de los comerciales sirvieron como singles para lee entre sus álbumes data/train/male/common_voice_es_20511043.flac
|
8 |
-
common_voice_es_20711016 train female los hombres se quedan a jugar a las cartas hasta que amanece sin dormir data/train/female/common_voice_es_20711016.flac
|
9 |
-
common_voice_es_20711252 train female con trece años comienza a realizar pequeños papeles para series de televisión y cine data/train/female/common_voice_es_20711252.flac
|
10 |
-
common_voice_es_20717545 train female su actividad fuera del campo fue variada data/train/female/common_voice_es_20717545.flac
|
11 |
-
common_voice_es_20717953 train female actualmente no está activo data/train/female/common_voice_es_20717953.flac
|
12 |
-
common_voice_es_20722210 train female es nativo de farmington hills michigan data/train/female/common_voice_es_20722210.flac
|
13 |
-
common_voice_es_20722849 train female incluye el navegador web safari y la aplicación mail de apple data/train/female/common_voice_es_20722849.flac
|
14 |
-
common_voice_es_20724424 train female desempeña un papel vital en la promoción del talento nacional e internacional emergente data/train/female/common_voice_es_20724424.flac
|
15 |
-
common_voice_es_20725001 train female las grabaciones se extendieron hasta finales del mes de mayo data/train/female/common_voice_es_20725001.flac
|
16 |
-
common_voice_es_20931278 train female entre las personas nombradas se encontraba carlos alberto lacoste data/train/female/common_voice_es_20931278.flac
|
17 |
-
common_voice_es_20932253 train female hasta el presente ningún vehículo orbital reutilizable real se ha llegado a usar data/train/female/common_voice_es_20932253.flac
|
18 |
-
common_voice_es_21469616 train male sus principales producciones fueron escritas para ser representadas ó cantadas data/train/male/common_voice_es_21469616.flac
|
19 |
-
common_voice_es_21486095 train male permite eliminar los reflejos luminosos y obtener efectos con las sombras data/train/male/common_voice_es_21486095.flac
|
20 |
-
common_voice_es_21543608 train male el número y clase de pájaros varía en cada nivel data/train/male/common_voice_es_21543608.flac
|
21 |
-
common_voice_es_21580953 train male la parte norte del brocal es más irregular con una protuberancia hacia el norte noroeste data/train/male/common_voice_es_21580953.flac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data/train/female/common_voice_es_20711016.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:7e0d263f18b59afac29dead7689142fbc91aaa878636fc6bf0623a4addde2bfa
|
3 |
-
size 57461
|
|
|
|
|
|
|
|
data/train/female/common_voice_es_20711252.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:167997f20b4b76947f76091c347038f328cfbca66bd13f5002c14d25ecfa1854
|
3 |
-
size 66553
|
|
|
|
|
|
|
|
data/train/female/common_voice_es_20717545.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:62aa1d3b478e01bdd3019844f8322ea90fd336825f60ae2a07a65dab462ff0ed
|
3 |
-
size 39464
|
|
|
|
|
|
|
|
data/train/female/common_voice_es_20717953.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:d34a532605aa79df1d9ad37e2bd300f51d69230cb25932e8248126ea454636c0
|
3 |
-
size 30842
|
|
|
|
|
|
|
|
data/train/female/common_voice_es_20722210.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:f911d1a75dadedc183e37c6776e356b67cfb256c2180a6e9354edbdb21f7d823
|
3 |
-
size 97410
|
|
|
|
|
|
|
|
data/train/female/common_voice_es_20722849.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:b2ef0a36f6c0a91fb523621805cc40afe5c45132e37531a9c968cdf34bfdb374
|
3 |
-
size 114484
|
|
|
|
|
|
|
|
data/train/female/common_voice_es_20724424.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:96e9ce977d6b51a3ed30d9508ee4d188789dff83ca5d4507f52c1a2fb9e9fe42
|
3 |
-
size 77373
|
|
|
|
|
|
|
|
data/train/female/common_voice_es_20725001.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:b59001aa12512d169e691b17063e452b67298b891f550a81aca78cbf0ffd21fd
|
3 |
-
size 53351
|
|
|
|
|
|
|
|
data/train/female/common_voice_es_20931278.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:d25243aabac43ab6b35c9e67369d31041fe192a626eadf258ec1eb79c4e4231a
|
3 |
-
size 66316
|
|
|
|
|
|
|
|
data/train/female/common_voice_es_20932253.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:8f628fb9600f698b15e660916197e354164f05694b54ea0d84f93b4dbfda1773
|
3 |
-
size 77687
|
|
|
|
|
|
|
|
data/train/male/common_voice_es_18306568.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:e23f17e9aee757cb754a53c73cdee9f65fee3532a32d935291af3bf07e15bbf6
|
3 |
-
size 71087
|
|
|
|
|
|
|
|
data/train/male/common_voice_es_18320698.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:5020a5250197315e359a0795d3a1382503ce53a0ca92308516e94229256f3006
|
3 |
-
size 66208
|
|
|
|
|
|
|
|
data/train/male/common_voice_es_19596707.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:bd5b67ac10927c9d6eb4a619d6da10fc4c781baab6dccf9a019fc65d8c2ca91a
|
3 |
-
size 96724
|
|
|
|
|
|
|
|
data/train/male/common_voice_es_20501506.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:9acb8dc5334f4d37e06a34efcebd20534945851ff7137aeb9894a6847828d427
|
3 |
-
size 74474
|
|
|
|
|
|
|
|
data/train/male/common_voice_es_20507096.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:628674ed2ae98583abe9a08d6568c4084584724be84b7363b8e77e5025fd51ec
|
3 |
-
size 52527
|
|
|
|
|
|
|
|
data/train/male/common_voice_es_20511043.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:bb9b70f0d583c01e85009edca034b6d3287651396d2db63f773f0ee7c122e3ff
|
3 |
-
size 126066
|
|
|
|
|
|
|
|
data/train/male/common_voice_es_21469616.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:6e6d3692569c225d97bc3f15e2776d31beadaae13a333f4367fe28a8df2287fa
|
3 |
-
size 100971
|
|
|
|
|
|
|
|
data/train/male/common_voice_es_21486095.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:dd3f10bcfaa16d002cafb5095a82a212cfd63cf11fd44e35f7d49538f281d08d
|
3 |
-
size 101980
|
|
|
|
|
|
|
|
data/train/male/common_voice_es_21543608.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:f409fd89a5461db5cb0d0e1ad61179244ab61ab1bef8c7fdea8fae394c26e420
|
3 |
-
size 64251
|
|
|
|
|
|
|
|
data/train/male/common_voice_es_21580953.flac
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:d03b9c090bb8c73ef7556c14a34e64459a78c1afb21a10efc3dafc9e9e302c2b
|
3 |
-
size 119151
|
|
|
|
|
|
|
|
dummy_corpus_asr_es.py
DELETED
@@ -1,155 +0,0 @@
|
|
1 |
-
from collections import defaultdict
|
2 |
-
import os
|
3 |
-
import json
|
4 |
-
import csv
|
5 |
-
|
6 |
-
import datasets
|
7 |
-
|
8 |
-
_NAME="dummy_corpus_asr_es"
|
9 |
-
_VERSION="1.0.0"
|
10 |
-
|
11 |
-
_DESCRIPTION = """
|
12 |
-
An extremely small corpus of 40 audio files taken from Common Voice (es) with the objective of testing how to share datasets in Hugging Face.
|
13 |
-
"""
|
14 |
-
|
15 |
-
_CITATION = """
|
16 |
-
@misc{dummy-corpus-asr-es,
|
17 |
-
title={Dummy Corpus for ASR in Spanish.},
|
18 |
-
author={Hernandez Mena, Carlos Daniel},
|
19 |
-
year={2022},
|
20 |
-
url={https://huggingface.co/datasets/carlosdanielhernandezmena/dummy_corpus_asr_es},
|
21 |
-
}
|
22 |
-
"""
|
23 |
-
|
24 |
-
_HOMEPAGE = "https://huggingface.co/datasets/carlosdanielhernandezmena/dummy_corpus_asr_es"
|
25 |
-
|
26 |
-
_LICENSE = "CC-BY-4.0, See https://creativecommons.org/licenses/by/4.0/"
|
27 |
-
|
28 |
-
_BASE_DATA_DIR = "data/"
|
29 |
-
_METADATA_TRAIN = _BASE_DATA_DIR + "train.tsv"
|
30 |
-
_METADATA_TEST = _BASE_DATA_DIR + "test.tsv"
|
31 |
-
_METADATA_DEV = _BASE_DATA_DIR + "dev.tsv"
|
32 |
-
|
33 |
-
class DummyCorpusAsrEsConfig(datasets.BuilderConfig):
|
34 |
-
"""BuilderConfig for Dummy Corpus ASR ES."""
|
35 |
-
|
36 |
-
def __init__(self, name, **kwargs):
|
37 |
-
name=_NAME
|
38 |
-
super().__init__(name=name, **kwargs)
|
39 |
-
|
40 |
-
class DummyCorpusAsrEs(datasets.GeneratorBasedBuilder):
|
41 |
-
"""The Dummy Corpus ASR ES dataset."""
|
42 |
-
|
43 |
-
VERSION = datasets.Version(_VERSION)
|
44 |
-
BUILDER_CONFIGS = [
|
45 |
-
DummyCorpusAsrEsConfig(
|
46 |
-
name=_NAME,
|
47 |
-
version=datasets.Version(_VERSION),
|
48 |
-
)
|
49 |
-
]
|
50 |
-
|
51 |
-
def _info(self):
|
52 |
-
features = datasets.Features(
|
53 |
-
{
|
54 |
-
"audio_id": datasets.Value("string"),
|
55 |
-
"audio": datasets.Audio(sampling_rate=16000),
|
56 |
-
"split": datasets.Value("string"),
|
57 |
-
"gender": datasets.Value("string"),
|
58 |
-
"normalized_text": datasets.Value("string"),
|
59 |
-
"relative_path": datasets.Value("string"),
|
60 |
-
}
|
61 |
-
)
|
62 |
-
return datasets.DatasetInfo(
|
63 |
-
description=_DESCRIPTION,
|
64 |
-
features=features,
|
65 |
-
homepage=_HOMEPAGE,
|
66 |
-
license=_LICENSE,
|
67 |
-
citation=_CITATION,
|
68 |
-
)
|
69 |
-
|
70 |
-
def _split_generators(self, dl_manager):
|
71 |
-
|
72 |
-
metadata_train=dl_manager.download_and_extract(_METADATA_TRAIN)
|
73 |
-
metadata_test=dl_manager.download_and_extract(_METADATA_TEST)
|
74 |
-
metadata_dev=dl_manager.download_and_extract(_METADATA_DEV)
|
75 |
-
|
76 |
-
meta_paths={"train":metadata_train,"test":metadata_test,"dev":metadata_dev}
|
77 |
-
|
78 |
-
with open(metadata_train) as f:
|
79 |
-
hash_meta_train = {x["audio_id"]: x for x in csv.DictReader(f, delimiter="\t")}
|
80 |
-
|
81 |
-
with open(metadata_test) as f:
|
82 |
-
hash_meta_test = {x["audio_id"]: x for x in csv.DictReader(f, delimiter="\t")}
|
83 |
-
|
84 |
-
with open(metadata_dev) as f:
|
85 |
-
hash_meta_dev = {x["audio_id"]: x for x in csv.DictReader(f, delimiter="\t")}
|
86 |
-
|
87 |
-
hash_audios=defaultdict(dict)
|
88 |
-
hash_audios["train"]=[]
|
89 |
-
for audio_in in hash_meta_train:
|
90 |
-
hash_audios["train"].append(hash_meta_train[audio_in]["relative_path"])
|
91 |
-
|
92 |
-
hash_audios["test"]=[]
|
93 |
-
for audio_in in hash_meta_test:
|
94 |
-
hash_audios["test"].append(hash_meta_test[audio_in]["relative_path"])
|
95 |
-
|
96 |
-
hash_audios["dev"]=[]
|
97 |
-
for audio_in in hash_meta_dev:
|
98 |
-
hash_audios["dev"].append(hash_meta_dev[audio_in]["relative_path"])
|
99 |
-
|
100 |
-
relative_paths=hash_audios
|
101 |
-
|
102 |
-
audio_paths = dl_manager.download(hash_audios)
|
103 |
-
|
104 |
-
local_extracted_audio_paths = dl_manager.download_and_extract(audio_paths)
|
105 |
-
|
106 |
-
return [
|
107 |
-
datasets.SplitGenerator(
|
108 |
-
name=datasets.Split.TRAIN,
|
109 |
-
gen_kwargs={
|
110 |
-
"audio_archives":[dl_manager.iter_archive(archive) for archive in audio_paths["train"]],
|
111 |
-
"local_extracted_archives_paths": local_extracted_audio_paths["train"],
|
112 |
-
"metadata_paths": meta_paths["train"],
|
113 |
-
"relative_paths":relative_paths["train"],
|
114 |
-
}
|
115 |
-
),
|
116 |
-
datasets.SplitGenerator(
|
117 |
-
name=datasets.Split.VALIDATION,
|
118 |
-
gen_kwargs={
|
119 |
-
"audio_archives": [dl_manager.iter_archive(archive) for archive in audio_paths["dev"]],
|
120 |
-
"local_extracted_archives_paths": local_extracted_audio_paths["dev"],
|
121 |
-
"metadata_paths": meta_paths["dev"],
|
122 |
-
"relative_paths":relative_paths["dev"],
|
123 |
-
}
|
124 |
-
),
|
125 |
-
datasets.SplitGenerator(
|
126 |
-
name=datasets.Split.TEST,
|
127 |
-
gen_kwargs={
|
128 |
-
"audio_archives": [dl_manager.iter_archive(archive) for archive in audio_paths["test"]],
|
129 |
-
"local_extracted_archives_paths": local_extracted_audio_paths["test"],
|
130 |
-
"metadata_paths": meta_paths["test"],
|
131 |
-
"relative_paths":relative_paths["test"],
|
132 |
-
}
|
133 |
-
),
|
134 |
-
]
|
135 |
-
|
136 |
-
def _generate_examples(self, audio_archives, local_extracted_archives_paths, metadata_paths,relative_paths):
|
137 |
-
|
138 |
-
features = ["normalized_text","gender","split","relative_path"]
|
139 |
-
|
140 |
-
meta_path = metadata_paths
|
141 |
-
|
142 |
-
with open(meta_path) as f:
|
143 |
-
metadata = {x["audio_id"]: x for x in csv.DictReader(f, delimiter="\t")}
|
144 |
-
|
145 |
-
for audio_archive,local_path,rel_path in zip(audio_archives,local_extracted_archives_paths,relative_paths):
|
146 |
-
#audio_id = rel_path.split(os.sep)[-1].split(".flac")[0]
|
147 |
-
audio_id =os.path.splitext(os.path.basename(rel_path))[0]
|
148 |
-
path = local_path
|
149 |
-
|
150 |
-
yield audio_id, {
|
151 |
-
"audio_id": audio_id,
|
152 |
-
**{feature: metadata[audio_id][feature] for feature in features},
|
153 |
-
"audio": {"path": path},
|
154 |
-
}
|
155 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data/dev/female/common_voice_es_19738526.flac → dummy_corpus_asr_es/test-00000-of-00001.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9db40f91450f1013b6102930ebddec9e3a38baa48116dc0b62507457e1b28c53
|
3 |
+
size 812764
|
data/dev/female/common_voice_es_19603417.flac → dummy_corpus_asr_es/train-00000-of-00001.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c3ff83c402ad880996bbbad66d2162ce6ba7f01fbb2116fa8d02bcab6c0b9fd0
|
3 |
+
size 1560483
|
data/dev/female/common_voice_es_18549611.flac → dummy_corpus_asr_es/validation-00000-of-00001.parquet
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3ef2dd44be92fc5f3206ba494e6429ac89529b8d49419143e466be99cc101301
|
3 |
+
size 978348
|