Upload sanitized corpus and readme
#10
by
ssolito
- opened
- README.md +10 -3
- corpus/speech/clean_dev_long/clean_dev_long_1.tar.gz +2 -2
- corpus/speech/clean_dev_short/clean_dev_short_1.tar.gz +2 -2
- corpus/speech/clean_test_long/clean_test_long_1.tar.gz +2 -2
- corpus/speech/clean_test_short/clean_test_short_1.tar.gz +2 -2
- corpus/speech/clean_train_long/clean_train_long_1.tar.gz +2 -2
- corpus/speech/clean_train_long/clean_train_long_2.tar.gz +2 -2
- corpus/speech/clean_train_short/clean_train_short_1.tar.gz +2 -2
- corpus/speech/clean_train_short/clean_train_short_10.tar.gz +2 -2
- corpus/speech/clean_train_short/clean_train_short_11.tar.gz +2 -2
- corpus/speech/clean_train_short/clean_train_short_12.tar.gz +2 -2
- corpus/speech/clean_train_short/clean_train_short_13.tar.gz +2 -2
- corpus/speech/clean_train_short/clean_train_short_2.tar.gz +2 -2
- corpus/speech/clean_train_short/clean_train_short_3.tar.gz +2 -2
- corpus/speech/clean_train_short/clean_train_short_4.tar.gz +2 -2
- corpus/speech/clean_train_short/clean_train_short_5.tar.gz +2 -2
- corpus/speech/clean_train_short/clean_train_short_6.tar.gz +2 -2
- corpus/speech/clean_train_short/clean_train_short_7.tar.gz +2 -2
- corpus/speech/clean_train_short/clean_train_short_8.tar.gz +2 -2
- corpus/speech/clean_train_short/clean_train_short_9.tar.gz +2 -2
- corpus/speech/other_dev_long/other_dev_long_1.tar.gz +2 -2
- corpus/speech/other_dev_short/other_dev_short_1.tar.gz +2 -2
- corpus/speech/other_test_long/other_test_long_1.tar.gz +2 -2
- corpus/speech/other_test_short/other_test_short_1.tar.gz +2 -2
- corpus/speech/other_train_long/other_train_long_1.tar.gz +2 -2
- corpus/speech/other_train_long/other_train_long_2.tar.gz +2 -2
- corpus/speech/other_train_short/other_train_short_1.tar.gz +2 -2
- corpus/speech/other_train_short/other_train_short_10.tar.gz +2 -2
- corpus/speech/other_train_short/other_train_short_11.tar.gz +2 -2
- corpus/speech/other_train_short/other_train_short_12.tar.gz +2 -2
- corpus/speech/other_train_short/other_train_short_2.tar.gz +2 -2
- corpus/speech/other_train_short/other_train_short_3.tar.gz +2 -2
- corpus/speech/other_train_short/other_train_short_4.tar.gz +2 -2
- corpus/speech/other_train_short/other_train_short_5.tar.gz +2 -2
- corpus/speech/other_train_short/other_train_short_6.tar.gz +2 -2
- corpus/speech/other_train_short/other_train_short_7.tar.gz +2 -2
- corpus/speech/other_train_short/other_train_short_8.tar.gz +2 -2
- corpus/speech/other_train_short/other_train_short_9.tar.gz +2 -2
- corts_valencianes_asr_a.py +18 -16
README.md
CHANGED
@@ -141,11 +141,18 @@ The dataset consists of a train, dev and test splits, for both short and long se
|
|
141 |
|
142 |
### Example Usage
|
143 |
|
144 |
-
To load
|
145 |
|
146 |
```python
|
147 |
-
|
148 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
```
|
150 |
|
151 |
## Dataset Creation
|
|
|
141 |
|
142 |
### Example Usage
|
143 |
|
144 |
+
To load the dataset:
|
145 |
|
146 |
```python
|
147 |
+
from datasets import load_dataset
|
148 |
+
data = load_dataset("projecte-aina/corts_valencianes_asr_a",trust_remote_code=True)
|
149 |
+
```
|
150 |
+
|
151 |
+
To load the dataset with streaming enabled (recommended for large audio files):
|
152 |
+
|
153 |
+
```python
|
154 |
+
from datasets import load_dataset
|
155 |
+
data = load_dataset("projecte-aina/corts_valencianes_asr_a",trust_remote_code=True, streaming=True)
|
156 |
```
|
157 |
|
158 |
## Dataset Creation
|
corpus/speech/clean_dev_long/clean_dev_long_1.tar.gz
CHANGED
@@ -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:1b509017c151cbe81d3b0cdc29c981b95c5a37f5c0c09adbfc94d32c9fdf3904
|
3 |
+
size 97521676
|
corpus/speech/clean_dev_short/clean_dev_short_1.tar.gz
CHANGED
@@ -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:ca40f838e0c0bbf74af3cb6cdc680bfc5bfc96317efbfab9c322eddc070a4a80
|
3 |
+
size 926909148
|
corpus/speech/clean_test_long/clean_test_long_1.tar.gz
CHANGED
@@ -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:485dcfc2f660a1ce0d2d7b4a384fc4d7b4eab57da86f50ece11e97be704155d1
|
3 |
+
size 103122434
|
corpus/speech/clean_test_short/clean_test_short_1.tar.gz
CHANGED
@@ -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:32852c5fb573d384a374ad612e20d62708d6276b1f81c27c859c4dd5aa6d36a1
|
3 |
+
size 903338225
|
corpus/speech/clean_train_long/clean_train_long_1.tar.gz
CHANGED
@@ -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:30adc51394e96628bd4281adbf5cd0ad2c30f41c2f64c10d94fc252e9f40b5fa
|
3 |
+
size 3006863416
|
corpus/speech/clean_train_long/clean_train_long_2.tar.gz
CHANGED
@@ -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:35a6030016e40a4288527e5b64b0c7ec52b6370a5ffe854428da227e0ca0988a
|
3 |
+
size 1376823250
|
corpus/speech/clean_train_short/clean_train_short_1.tar.gz
CHANGED
@@ -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:ea081d717d2d3a8411acfe9cb34c1d222b8d567a48e4a57f6df27b2980f58a38
|
3 |
+
size 3007846575
|
corpus/speech/clean_train_short/clean_train_short_10.tar.gz
CHANGED
@@ -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:dbd53027e166d7b73b03bec959c1fede39a57771067203565f18866738de44bd
|
3 |
+
size 3008664894
|
corpus/speech/clean_train_short/clean_train_short_11.tar.gz
CHANGED
@@ -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:8d70b20e15932b0d2648cda8c5d288f41cca39c8e30c421835866faeefbab760
|
3 |
+
size 3007985307
|
corpus/speech/clean_train_short/clean_train_short_12.tar.gz
CHANGED
@@ -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:c4dc988b9587a9b332f78a838d26fabfef478d3ace193d6d69d0e677da60d808
|
3 |
+
size 3007799575
|
corpus/speech/clean_train_short/clean_train_short_13.tar.gz
CHANGED
@@ -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:a67bf602e4359c8dfc85f5dec617bdd8e3753e7817e5e09e9aacbb6b79c020a9
|
3 |
+
size 135822859
|
corpus/speech/clean_train_short/clean_train_short_2.tar.gz
CHANGED
@@ -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:d31d3e8721e8748a00b519127e4e2c661b381c6c8d335e78d03cde97aff6031b
|
3 |
+
size 3007728257
|
corpus/speech/clean_train_short/clean_train_short_3.tar.gz
CHANGED
@@ -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:854dcc185fdd00ad7ab2bbc066d29711cdae9e528f288b91ca38b3beaa188568
|
3 |
+
size 3006581601
|
corpus/speech/clean_train_short/clean_train_short_4.tar.gz
CHANGED
@@ -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:5fdb09eb56af69f3b4309625e5fcecad5214979e6f41dcd271fc9c69175b1556
|
3 |
+
size 3008271083
|
corpus/speech/clean_train_short/clean_train_short_5.tar.gz
CHANGED
@@ -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:c93c67a61781fcff9c6c28671e47cf8dbea63a08462590b78b5c3d7c9a77637d
|
3 |
+
size 3007512700
|
corpus/speech/clean_train_short/clean_train_short_6.tar.gz
CHANGED
@@ -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:c9fb53acf1c461a61c733cd91cdbfec985ed75f2ec4c8ee936fb3d9ce1d4071f
|
3 |
+
size 3008004975
|
corpus/speech/clean_train_short/clean_train_short_7.tar.gz
CHANGED
@@ -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:cd3aac58ae2df1f33a8ee42142cd9a8f336691b585ef433a7880c7d29514fc7c
|
3 |
+
size 3008400831
|
corpus/speech/clean_train_short/clean_train_short_8.tar.gz
CHANGED
@@ -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:4cf735a936085446674cb461be7f06b5fd9e6435a00668693c69dfd8f4080b9e
|
3 |
+
size 3007930495
|
corpus/speech/clean_train_short/clean_train_short_9.tar.gz
CHANGED
@@ -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:d185a36bb08ce2f39525984a45701775fded1cecd7025f41ba316eefe835210a
|
3 |
+
size 3007912091
|
corpus/speech/other_dev_long/other_dev_long_1.tar.gz
CHANGED
@@ -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:46fc5be17de455331c1ea1f1d55aac6e0e75fcbaaae95a478aebdf07f7e83d08
|
3 |
+
size 87918751
|
corpus/speech/other_dev_short/other_dev_short_1.tar.gz
CHANGED
@@ -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:b5444974c12183c1f7c59de18b691cdf8556f3604bda8fde1284bafd429a9ca1
|
3 |
+
size 967027327
|
corpus/speech/other_test_long/other_test_long_1.tar.gz
CHANGED
@@ -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:366701933791576d82d8ce52e2e2d65ad4fb61ae535ad31ae4c47f3b11725afc
|
3 |
+
size 76099242
|
corpus/speech/other_test_short/other_test_short_1.tar.gz
CHANGED
@@ -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:2a2c08e1faf581dd189392a78cfad9c45138a433ceaec9dd03d89085ea0c56ab
|
3 |
+
size 1001018232
|
corpus/speech/other_train_long/other_train_long_1.tar.gz
CHANGED
@@ -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:259879eccb711569b3d0b258a5e510cacfe7d0eed3457cd9a32b31b011e5569f
|
3 |
+
size 3002647348
|
corpus/speech/other_train_long/other_train_long_2.tar.gz
CHANGED
@@ -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:0f5d4e5aed1eb2e31c389967fc6873a452e5d827c72200d07a65d992a76cfcc8
|
3 |
+
size 1977324386
|
corpus/speech/other_train_short/other_train_short_1.tar.gz
CHANGED
@@ -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:56134f617c08ca751b3dada9eac35a94ee42c267304148a1e99618f4dbc12049
|
3 |
+
size 3006462047
|
corpus/speech/other_train_short/other_train_short_10.tar.gz
CHANGED
@@ -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:5b593af15eaaf60d74759035d03a8a42a6b31751ee0ef91fa0f3a647442d7e7b
|
3 |
+
size 3006914452
|
corpus/speech/other_train_short/other_train_short_11.tar.gz
CHANGED
@@ -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:766c8a041c0ee9a900eb1bd76ecaf7dbc825f3318e44eaec98a4b68ca4f31e05
|
3 |
+
size 3006884647
|
corpus/speech/other_train_short/other_train_short_12.tar.gz
CHANGED
@@ -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:db0e4d4c300696e072c849acd83b907e352aea6572c7ce02aa12f13a903aafef
|
3 |
+
size 2022095865
|
corpus/speech/other_train_short/other_train_short_2.tar.gz
CHANGED
@@ -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:d92d2fb608c27a075752226d0d0c0d5aa9c3915cd4e2d73d23fefb23ec0b77e5
|
3 |
+
size 3007185275
|
corpus/speech/other_train_short/other_train_short_3.tar.gz
CHANGED
@@ -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:1f013e6b8c455584626aaf6f411e3734ef98f1cc2276b4ff5267b37e9468e8d8
|
3 |
+
size 3006405506
|
corpus/speech/other_train_short/other_train_short_4.tar.gz
CHANGED
@@ -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:47225cef25096f46ed04ebb46a2e3578f374e7bdc9628b45a36130fa83615357
|
3 |
+
size 3007122383
|
corpus/speech/other_train_short/other_train_short_5.tar.gz
CHANGED
@@ -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:f25c59aab4fe6cd250e1c55c6cec2710d3e2144abe314c73b5a2fa5e69aaa97b
|
3 |
+
size 3006677786
|
corpus/speech/other_train_short/other_train_short_6.tar.gz
CHANGED
@@ -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:f189daedb65922babc71b59fd71823398544673fe6bc0da6382adb59a79e0864
|
3 |
+
size 3007040653
|
corpus/speech/other_train_short/other_train_short_7.tar.gz
CHANGED
@@ -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:fcd3d641ce02fcf6ddcfbea406d8ee3631c22bb824980690ed23ad90a1e3b6bb
|
3 |
+
size 3006757412
|
corpus/speech/other_train_short/other_train_short_8.tar.gz
CHANGED
@@ -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:3933a039079b5709de95b4df7b035a5fb41972b15c8b8868bb2a5d564ebd74c1
|
3 |
+
size 3007098880
|
corpus/speech/other_train_short/other_train_short_9.tar.gz
CHANGED
@@ -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:76824dad2d39124b03367ad2ee486044e8c27a93bf3fec0f9880d3a74e4767b5
|
3 |
+
size 3007069812
|
corts_valencianes_asr_a.py
CHANGED
@@ -107,7 +107,7 @@ class CortsValencianesASR(datasets.GeneratorBasedBuilder):
|
|
107 |
metadata_other_train_short=dl_manager.download_and_extract(_METADATA_OTHER_TRAIN_SHORT)
|
108 |
metadata_other_test_short=dl_manager.download_and_extract(_METADATA_OTHER_TEST_SHORT)
|
109 |
metadata_other_dev_short=dl_manager.download_and_extract(_METADATA_OTHER_DEV_SHORT)
|
110 |
-
|
111 |
tars_clean_train_short=dl_manager.download_and_extract(_TARS_CLEAN_TRAIN_SHORT)
|
112 |
tars_clean_test_short=dl_manager.download_and_extract(_TARS_CLEAN_TEST_SHORT)
|
113 |
tars_clean_dev_short=dl_manager.download_and_extract(_TARS_CLEAN_DEV_SHORT)
|
@@ -132,38 +132,40 @@ class CortsValencianesASR(datasets.GeneratorBasedBuilder):
|
|
132 |
tars_other_train_long=dl_manager.download_and_extract(_TARS_OTHER_TRAIN_LONG)
|
133 |
tars_other_test_long=dl_manager.download_and_extract(_TARS_OTHER_TEST_LONG)
|
134 |
tars_other_dev_long=dl_manager.download_and_extract(_TARS_OTHER_DEV_LONG)
|
135 |
-
|
136 |
hash_tar_files=defaultdict(dict)
|
137 |
with open(tars_clean_train_short,'r') as f:
|
138 |
-
hash_tar_files['clean_train_short']=[path.
|
139 |
with open(tars_clean_test_short,'r') as f:
|
140 |
-
hash_tar_files['clean_test_short']=[path.
|
141 |
with open(tars_clean_dev_short,'r') as f:
|
142 |
-
hash_tar_files['clean_dev_short']=[path.
|
143 |
|
144 |
with open(tars_other_train_short,'r') as f:
|
145 |
-
hash_tar_files['other_train_short']=[path.
|
146 |
with open(tars_other_test_short,'r') as f:
|
147 |
-
hash_tar_files['other_test_short']=[path.
|
148 |
with open(tars_other_dev_short,'r') as f:
|
149 |
-
hash_tar_files['other_dev_short']=[path.
|
150 |
|
151 |
|
152 |
with open(tars_clean_train_long,'r') as f:
|
153 |
-
hash_tar_files['clean_train_long']=[path.
|
154 |
with open(tars_clean_test_long,'r') as f:
|
155 |
-
hash_tar_files['clean_test_long']=[path.
|
156 |
with open(tars_clean_dev_long,'r') as f:
|
157 |
-
hash_tar_files['clean_dev_long']=[path.
|
158 |
|
159 |
with open(tars_other_train_long,'r') as f:
|
160 |
-
hash_tar_files['other_train_long']=[path.
|
161 |
with open(tars_other_test_long,'r') as f:
|
162 |
-
hash_tar_files['other_test_long']=[path.
|
163 |
with open(tars_other_dev_long,'r') as f:
|
164 |
-
hash_tar_files['other_dev_long']=[path.
|
|
|
165 |
|
166 |
-
hash_meta_paths={
|
|
|
167 |
"clean_test_short":metadata_clean_test_short,
|
168 |
"clean_dev_short":metadata_clean_dev_short,
|
169 |
"other_train_short":metadata_other_train_short,
|
@@ -175,7 +177,7 @@ class CortsValencianesASR(datasets.GeneratorBasedBuilder):
|
|
175 |
"other_train_long":metadata_other_train_long,
|
176 |
"other_test_long":metadata_other_test_long,
|
177 |
"other_dev_long":metadata_other_dev_long}
|
178 |
-
|
179 |
audio_paths = dl_manager.download(hash_tar_files)
|
180 |
|
181 |
splits=["clean_train_short","clean_test_short","clean_dev_short","other_train_short","other_test_short","other_dev_short","clean_train_long","clean_test_long","clean_dev_long","other_train_long","other_test_long","other_dev_long"]
|
|
|
107 |
metadata_other_train_short=dl_manager.download_and_extract(_METADATA_OTHER_TRAIN_SHORT)
|
108 |
metadata_other_test_short=dl_manager.download_and_extract(_METADATA_OTHER_TEST_SHORT)
|
109 |
metadata_other_dev_short=dl_manager.download_and_extract(_METADATA_OTHER_DEV_SHORT)
|
110 |
+
|
111 |
tars_clean_train_short=dl_manager.download_and_extract(_TARS_CLEAN_TRAIN_SHORT)
|
112 |
tars_clean_test_short=dl_manager.download_and_extract(_TARS_CLEAN_TEST_SHORT)
|
113 |
tars_clean_dev_short=dl_manager.download_and_extract(_TARS_CLEAN_DEV_SHORT)
|
|
|
132 |
tars_other_train_long=dl_manager.download_and_extract(_TARS_OTHER_TRAIN_LONG)
|
133 |
tars_other_test_long=dl_manager.download_and_extract(_TARS_OTHER_TEST_LONG)
|
134 |
tars_other_dev_long=dl_manager.download_and_extract(_TARS_OTHER_DEV_LONG)
|
135 |
+
|
136 |
hash_tar_files=defaultdict(dict)
|
137 |
with open(tars_clean_train_short,'r') as f:
|
138 |
+
hash_tar_files['clean_train_short']=[path.strip() for path in f if path.strip()]
|
139 |
with open(tars_clean_test_short,'r') as f:
|
140 |
+
hash_tar_files['clean_test_short']=[path.strip() for path in f if path.strip()]
|
141 |
with open(tars_clean_dev_short,'r') as f:
|
142 |
+
hash_tar_files['clean_dev_short']=[path.strip() for path in f if path.strip()]
|
143 |
|
144 |
with open(tars_other_train_short,'r') as f:
|
145 |
+
hash_tar_files['other_train_short']=[path.strip() for path in f if path.strip()]
|
146 |
with open(tars_other_test_short,'r') as f:
|
147 |
+
hash_tar_files['other_test_short']=[path.strip() for path in f if path.strip()]
|
148 |
with open(tars_other_dev_short,'r') as f:
|
149 |
+
hash_tar_files['other_dev_short']=[path.strip() for path in f if path.strip()]
|
150 |
|
151 |
|
152 |
with open(tars_clean_train_long,'r') as f:
|
153 |
+
hash_tar_files['clean_train_long']=[path.strip() for path in f if path.strip()]
|
154 |
with open(tars_clean_test_long,'r') as f:
|
155 |
+
hash_tar_files['clean_test_long']=[path.strip() for path in f if path.strip()]
|
156 |
with open(tars_clean_dev_long,'r') as f:
|
157 |
+
hash_tar_files['clean_dev_long']=[path.strip() for path in f if path.strip()]
|
158 |
|
159 |
with open(tars_other_train_long,'r') as f:
|
160 |
+
hash_tar_files['other_train_long']=[path.strip() for path in f if path.strip()]
|
161 |
with open(tars_other_test_long,'r') as f:
|
162 |
+
hash_tar_files['other_test_long']=[path.strip() for path in f if path.strip()]
|
163 |
with open(tars_other_dev_long,'r') as f:
|
164 |
+
hash_tar_files['other_dev_long']=[path.strip() for path in f if path.strip()]
|
165 |
+
|
166 |
|
167 |
+
hash_meta_paths={
|
168 |
+
"clean_train_short":metadata_clean_train_short,
|
169 |
"clean_test_short":metadata_clean_test_short,
|
170 |
"clean_dev_short":metadata_clean_dev_short,
|
171 |
"other_train_short":metadata_other_train_short,
|
|
|
177 |
"other_train_long":metadata_other_train_long,
|
178 |
"other_test_long":metadata_other_test_long,
|
179 |
"other_dev_long":metadata_other_dev_long}
|
180 |
+
|
181 |
audio_paths = dl_manager.download(hash_tar_files)
|
182 |
|
183 |
splits=["clean_train_short","clean_test_short","clean_dev_short","other_train_short","other_test_short","other_dev_short","clean_train_long","clean_test_long","clean_dev_long","other_train_long","other_test_long","other_dev_long"]
|