Commit
•
b42cad6
1
Parent(s):
45f21af
change metadata to tar file
Browse files- archive/nst/metadata_se_csv.zip +0 -3
- babelbox_voice.py +5 -2
archive/nst/metadata_se_csv.zip
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:94993f25e3cc9415a465dbdb1529a300aca3dc24e0a29cdfb112d153be06f1bc
|
3 |
-
size 19735371
|
|
|
|
|
|
|
|
babelbox_voice.py
CHANGED
@@ -14,6 +14,7 @@ logger = datasets.logging.get_logger(__name__)
|
|
14 |
import torchaudio
|
15 |
import torch
|
16 |
from tqdm import tqdm
|
|
|
17 |
|
18 |
_CITATION = """\
|
19 |
@inproceedings{babelboxvoice:2022,
|
@@ -28,7 +29,7 @@ _DL_URLS = [
|
|
28 |
"https://huggingface.co/datasets/babelbox/babelbox_voice/resolve/main/archive/nst/nst-data-002.tar.gz"
|
29 |
]
|
30 |
|
31 |
-
_METADATA_URL = "https://
|
32 |
|
33 |
class BabelboxVoiceConfig(datasets.BuilderConfig):
|
34 |
"""BuilderConfig for BabelboxVoice."""
|
@@ -96,7 +97,9 @@ class BabelboxVoice(datasets.GeneratorBasedBuilder):
|
|
96 |
|
97 |
meta_url = self.config.meta_url
|
98 |
|
99 |
-
meta_path = dl_manager.download_and_extract(
|
|
|
|
|
100 |
|
101 |
metadata = {}
|
102 |
with open(meta_path, encoding="utf-8") as f:
|
|
|
14 |
import torchaudio
|
15 |
import torch
|
16 |
from tqdm import tqdm
|
17 |
+
from pathlib import Path
|
18 |
|
19 |
_CITATION = """\
|
20 |
@inproceedings{babelboxvoice:2022,
|
|
|
29 |
"https://huggingface.co/datasets/babelbox/babelbox_voice/resolve/main/archive/nst/nst-data-002.tar.gz"
|
30 |
]
|
31 |
|
32 |
+
_METADATA_URL = "https://huggingface.co/datasets/babelbox/babelbox_voice/resolve/main/archive/nst/metadata_se_csv.zip"
|
33 |
|
34 |
class BabelboxVoiceConfig(datasets.BuilderConfig):
|
35 |
"""BuilderConfig for BabelboxVoice."""
|
|
|
97 |
|
98 |
meta_url = self.config.meta_url
|
99 |
|
100 |
+
meta_path = dl_manager.download_and_extract(_METADATA_URL)
|
101 |
+
|
102 |
+
print(meta_path, Path(meta_path))
|
103 |
|
104 |
metadata = {}
|
105 |
with open(meta_path, encoding="utf-8") as f:
|