Changed gzip csv to csv
Browse files
.gitattributes
CHANGED
@@ -53,3 +53,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
53 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
54 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
55 |
*.webp filter=lfs diff=lfs merge=lfs -text
|
|
|
|
53 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
54 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
55 |
*.webp filter=lfs diff=lfs merge=lfs -text
|
56 |
+
*.csv filter=lfs diff=lfs merge=lfs -text
|
data/{metadata_test.csv.gz β metadata_test.csv}
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:7f03b3f045a6343e8979776e9ae9ea7fc4938a187078d11ce3c220c386641c9c
|
3 |
+
size 35395
|
data/{metadata_validation.csv.gz β metadata_train.csv}
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:73c46f553785ee22f072b39747520b09ce75f635a6975fe632f0bff5bcd4bcb9
|
3 |
+
size 346432
|
data/{metadata_train.csv.gz β metadata_validation.csv}
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:64690bb82610ac900d04cc11e9e09312e93c20ea5449b7dd177266f9fd903b0b
|
3 |
+
size 42305
|
dv-presidential-speech.py
CHANGED
@@ -44,13 +44,6 @@ _LICENSE = 'CC BY-NC-SA 4.0'
|
|
44 |
# Source data: 'https://drive.google.com/file/d/1vhMXoB2L23i4HfAGX7EYa4L-sfE4ThU5/view?usp=sharing'
|
45 |
_DATA_URL = 'data'
|
46 |
|
47 |
-
_PROMPTS_URLS = {
|
48 |
-
'train': 'data/metadata_train.tsv.gz',
|
49 |
-
'test': 'data/metadata_test.tsv.gz',
|
50 |
-
'validation': 'data/metadata_validation.tsv.gz',
|
51 |
-
}
|
52 |
-
|
53 |
-
|
54 |
class DhivehiPresidentialSpeech(datasets.GeneratorBasedBuilder):
|
55 |
"""Dhivehi Presidential Speech is a free Dhivehi speech corpus consisting of around 2.5 hours of
|
56 |
recorded speech prepared for Dhivehi Automatic Speech Recognition task."""
|
@@ -103,7 +96,7 @@ class DhivehiPresidentialSpeech(datasets.GeneratorBasedBuilder):
|
|
103 |
for split in split_type:
|
104 |
audio_path[split] = dl_manager.download(f'{_DATA_URL}/audio_{split}.tar.gz')
|
105 |
local_extracted_archive[split] = dl_manager.extract(audio_path[split]) if not dl_manager.is_streaming else None
|
106 |
-
metadata_path[split] = dl_manager.download_and_extract(f'{_DATA_URL}/metadata_{split}.csv
|
107 |
|
108 |
path_to_clips = 'dv-presidential-speech'
|
109 |
|
|
|
44 |
# Source data: 'https://drive.google.com/file/d/1vhMXoB2L23i4HfAGX7EYa4L-sfE4ThU5/view?usp=sharing'
|
45 |
_DATA_URL = 'data'
|
46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
class DhivehiPresidentialSpeech(datasets.GeneratorBasedBuilder):
|
48 |
"""Dhivehi Presidential Speech is a free Dhivehi speech corpus consisting of around 2.5 hours of
|
49 |
recorded speech prepared for Dhivehi Automatic Speech Recognition task."""
|
|
|
96 |
for split in split_type:
|
97 |
audio_path[split] = dl_manager.download(f'{_DATA_URL}/audio_{split}.tar.gz')
|
98 |
local_extracted_archive[split] = dl_manager.extract(audio_path[split]) if not dl_manager.is_streaming else None
|
99 |
+
metadata_path[split] = dl_manager.download_and_extract(f'{_DATA_URL}/metadata_{split}.csv')
|
100 |
|
101 |
path_to_clips = 'dv-presidential-speech'
|
102 |
|