noflm
commited on
Commit
·
11cc927
1
Parent(s):
f2e2266
fix config typo
Browse files- EliteVoiceProject.py +8 -5
EliteVoiceProject.py
CHANGED
@@ -40,6 +40,9 @@ _AUDIO_URL = _BASE_URL + "audio/{platform}/{split}/{platform}_{split}_{version}.
|
|
40 |
|
41 |
_TRANSCRIPT_URL = _BASE_URL + "transcript/{platform}/{split}/{platform}_{split}_{version}.csv"
|
42 |
|
|
|
|
|
|
|
43 |
|
44 |
class EliteVoiceProjectConfig(datasets.BuilderConfig):
|
45 |
"""BuilderConfig for EliteVoiceProject."""
|
@@ -63,12 +66,12 @@ class EliteVoiceProject(datasets.GeneratorBasedBuilder):
|
|
63 |
|
64 |
BUILDER_CONFIGS = [
|
65 |
EliteVoiceProjectConfig(
|
66 |
-
name=
|
67 |
version='0.0.1',
|
68 |
language='Japanese',
|
69 |
release_date='2022-12-08',
|
70 |
)
|
71 |
-
for
|
72 |
]
|
73 |
|
74 |
def _info(self):
|
@@ -95,7 +98,7 @@ class EliteVoiceProject(datasets.GeneratorBasedBuilder):
|
|
95 |
)
|
96 |
|
97 |
def _split_generators(self, dl_manager):
|
98 |
-
|
99 |
version = self.config.version
|
100 |
|
101 |
audio_urls = {}
|
@@ -103,12 +106,12 @@ class EliteVoiceProject(datasets.GeneratorBasedBuilder):
|
|
103 |
splits = ("train", "test")
|
104 |
for split in splits:
|
105 |
audio_urls[split] = [
|
106 |
-
_AUDIO_URL.format(platform=
|
107 |
]
|
108 |
archive_paths = dl_manager.download(audio_urls)
|
109 |
local_extracted_archive_paths = dl_manager.extract(archive_paths) if not dl_manager.is_streaming else {}
|
110 |
|
111 |
-
meta_urls = {split: _TRANSCRIPT_URL.format(platform=
|
112 |
meta_paths = dl_manager.download_and_extract(meta_urls)
|
113 |
|
114 |
split_generators = []
|
|
|
40 |
|
41 |
_TRANSCRIPT_URL = _BASE_URL + "transcript/{platform}/{split}/{platform}_{split}_{version}.csv"
|
42 |
|
43 |
+
_PLATFORMS = ["twitter"]
|
44 |
+
#_PLATFORMS = ["twitter", "youtube", "twitch"]
|
45 |
+
|
46 |
|
47 |
class EliteVoiceProjectConfig(datasets.BuilderConfig):
|
48 |
"""BuilderConfig for EliteVoiceProject."""
|
|
|
66 |
|
67 |
BUILDER_CONFIGS = [
|
68 |
EliteVoiceProjectConfig(
|
69 |
+
name=platform,
|
70 |
version='0.0.1',
|
71 |
language='Japanese',
|
72 |
release_date='2022-12-08',
|
73 |
)
|
74 |
+
for platform in _PLATFORMS
|
75 |
]
|
76 |
|
77 |
def _info(self):
|
|
|
98 |
)
|
99 |
|
100 |
def _split_generators(self, dl_manager):
|
101 |
+
platform = self.config.name
|
102 |
version = self.config.version
|
103 |
|
104 |
audio_urls = {}
|
|
|
106 |
splits = ("train", "test")
|
107 |
for split in splits:
|
108 |
audio_urls[split] = [
|
109 |
+
_AUDIO_URL.format(platform=platform, split=split, version=version)
|
110 |
]
|
111 |
archive_paths = dl_manager.download(audio_urls)
|
112 |
local_extracted_archive_paths = dl_manager.extract(archive_paths) if not dl_manager.is_streaming else {}
|
113 |
|
114 |
+
meta_urls = {split: _TRANSCRIPT_URL.format(platform=platform, split=split, version=version) for split in splits}
|
115 |
meta_paths = dl_manager.download_and_extract(meta_urls)
|
116 |
|
117 |
split_generators = []
|