Le Viet Hoang
commited on
Commit
·
242cd59
1
Parent(s):
5024489
fix dataset #2
Browse files- VBVLSP.py +10 -8
- transcript/train.tsv +0 -0
- transcript/train_1.tsv +0 -0
- transcript/train_10.tsv +0 -0
- transcript/train_2.tsv +0 -0
- transcript/train_3.tsv +0 -0
- transcript/train_4.tsv +0 -0
- transcript/train_5.tsv +0 -0
- transcript/train_6.tsv +0 -0
- transcript/train_7.tsv +0 -0
- transcript/train_8.tsv +0 -0
- transcript/train_9.tsv +0 -0
VBVLSP.py
CHANGED
|
@@ -27,7 +27,11 @@ from tqdm import tqdm
|
|
| 27 |
# TODO: change "streaming" to "main" after merge!
|
| 28 |
_BASE_URL = "https://huggingface.co/datasets/leviethoang/VBVLSP/resolve/main/"
|
| 29 |
|
| 30 |
-
_AUDIO_URL =
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
_TRANSCRIPT_URL = _BASE_URL + "transcript/{split}.tsv"
|
| 33 |
|
|
@@ -56,24 +60,22 @@ class CommonVoice(datasets.GeneratorBasedBuilder):
|
|
| 56 |
)
|
| 57 |
|
| 58 |
def _split_generators(self, dl_manager):
|
| 59 |
-
splits = ("
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
local_extracted_archive_path = dl_manager.extract(archive_path)
|
| 63 |
|
| 64 |
meta_urls = {split: _TRANSCRIPT_URL.format(split=split) for split in splits}
|
| 65 |
meta_paths = dl_manager.download_and_extract(meta_urls)
|
| 66 |
|
| 67 |
split_generators = []
|
| 68 |
-
archive = dl_manager.iter_archive(archive_path)
|
| 69 |
|
| 70 |
for split in splits:
|
| 71 |
split_generators.append(
|
| 72 |
datasets.SplitGenerator(
|
| 73 |
name=split,
|
| 74 |
gen_kwargs={
|
| 75 |
-
"local_extracted_archive_path":
|
| 76 |
-
"archive":
|
| 77 |
"meta_path": meta_paths[split],
|
| 78 |
},
|
| 79 |
),
|
|
|
|
| 27 |
# TODO: change "streaming" to "main" after merge!
|
| 28 |
_BASE_URL = "https://huggingface.co/datasets/leviethoang/VBVLSP/resolve/main/"
|
| 29 |
|
| 30 |
+
_AUDIO_URL = {
|
| 31 |
+
"train": "https://drive.google.com/uc?export=download&id=1kihGF0QTYs79UR8dKmktxy_zXXzdC1tI",
|
| 32 |
+
"test": "https://husteduvn-my.sharepoint.com/:u:/g/personal/hoang_lv194767_sis_hust_edu_vn/Ea0uw5DdlxRKpjay1pm6LIoBI6cU4cxHbpTmhWCCRtvMXw?e=yfN5NR&download=1",
|
| 33 |
+
"validation": "https://husteduvn-my.sharepoint.com/:u:/g/personal/hoang_lv194767_sis_hust_edu_vn/EerG7YTpS8dNgpG5vsnpsm0BBKZYYifqcW4kRX3VzHHO5w?e=uvo7Is&download=1"
|
| 34 |
+
}
|
| 35 |
|
| 36 |
_TRANSCRIPT_URL = _BASE_URL + "transcript/{split}.tsv"
|
| 37 |
|
|
|
|
| 60 |
)
|
| 61 |
|
| 62 |
def _split_generators(self, dl_manager):
|
| 63 |
+
splits = ("train", "test", "validation")
|
| 64 |
+
archive_paths = dl_manager.download(_AUDIO_URL)
|
| 65 |
+
local_extracted_archive_paths = dl_manager.extract(archive_paths)
|
|
|
|
| 66 |
|
| 67 |
meta_urls = {split: _TRANSCRIPT_URL.format(split=split) for split in splits}
|
| 68 |
meta_paths = dl_manager.download_and_extract(meta_urls)
|
| 69 |
|
| 70 |
split_generators = []
|
|
|
|
| 71 |
|
| 72 |
for split in splits:
|
| 73 |
split_generators.append(
|
| 74 |
datasets.SplitGenerator(
|
| 75 |
name=split,
|
| 76 |
gen_kwargs={
|
| 77 |
+
"local_extracted_archive_path": local_extracted_archive_paths.get(split),
|
| 78 |
+
"archive": dl_manager.iter_archive(archive_paths.get(split)),
|
| 79 |
"meta_path": meta_paths[split],
|
| 80 |
},
|
| 81 |
),
|
transcript/train.tsv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
transcript/train_1.tsv
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
transcript/train_10.tsv
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
transcript/train_2.tsv
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
transcript/train_3.tsv
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
transcript/train_4.tsv
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
transcript/train_5.tsv
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
transcript/train_6.tsv
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
transcript/train_7.tsv
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
transcript/train_8.tsv
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
transcript/train_9.tsv
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|