Update transcribed-vietnamese-audio.py
Browse files
transcribed-vietnamese-audio.py
CHANGED
@@ -19,7 +19,6 @@ _MAIN_REPO_PATH = "datasets/phdkhanh2507/transcribed-vietnamese-audio"
|
|
19 |
_REPO_URL = "https://huggingface.co/{}/resolve/main"
|
20 |
_URLS = {
|
21 |
"meta": f"{_REPO_URL}/metadata/".format(_MAIN_REPO_PATH) + "{channel}.parquet",
|
22 |
-
"transcript": f"{_REPO_URL}/transcript/".format(_MAIN_REPO_PATH) + "{channel}.zip",
|
23 |
}
|
24 |
|
25 |
_CONFIGS = ["all"]
|
@@ -34,6 +33,7 @@ if fs.exists(_MAIN_REPO_PATH + "/metadata"):
|
|
34 |
class TranscribedVietnameseAudioConfig(datasets.BuilderConfig):
|
35 |
"""Transcribed Vietnamese Audio configuration."""
|
36 |
|
|
|
37 |
def __init__(self, name, **kwargs):
|
38 |
"""
|
39 |
:param name: Name of subset.
|
@@ -56,10 +56,10 @@ class TranscribedVietnameseAudio(datasets.GeneratorBasedBuilder):
|
|
56 |
def _info(self) -> datasets.DatasetInfo:
|
57 |
features = datasets.Features({
|
58 |
"id": datasets.Value("string"),
|
59 |
-
"
|
60 |
-
"
|
61 |
-
"
|
62 |
-
"
|
63 |
})
|
64 |
|
65 |
return datasets.DatasetInfo(
|
|
|
19 |
_REPO_URL = "https://huggingface.co/{}/resolve/main"
|
20 |
_URLS = {
|
21 |
"meta": f"{_REPO_URL}/metadata/".format(_MAIN_REPO_PATH) + "{channel}.parquet",
|
|
|
22 |
}
|
23 |
|
24 |
_CONFIGS = ["all"]
|
|
|
33 |
class TranscribedVietnameseAudioConfig(datasets.BuilderConfig):
|
34 |
"""Transcribed Vietnamese Audio configuration."""
|
35 |
|
36 |
+
|
37 |
def __init__(self, name, **kwargs):
|
38 |
"""
|
39 |
:param name: Name of subset.
|
|
|
56 |
def _info(self) -> datasets.DatasetInfo:
|
57 |
features = datasets.Features({
|
58 |
"id": datasets.Value("string"),
|
59 |
+
"chunk_id": datasets.Value("string"),
|
60 |
+
"video_fps": datasets.Value("int8"),
|
61 |
+
"audio_fps": datasets.Value("int8"),
|
62 |
+
"transcript": datasets.Value("string"),
|
63 |
})
|
64 |
|
65 |
return datasets.DatasetInfo(
|