Datasets:
Tags:
speech-modeling
License:
Fixing validation
Browse files
NPSC.py
CHANGED
@@ -50,7 +50,7 @@ _DATA_URL = "https://huggingface.co/datasets/NbAiLab/NPSC/resolve/main/data/{spl
|
|
50 |
_METADATA_URL = "https://huggingface.co/datasets/NbAiLab/NPSC/resolve/main/data/{split}/{shard}.json"
|
51 |
|
52 |
_SHARDS = {
|
53 |
-
"
|
54 |
"test": ["20170207", "20171122", "20171219", "20180530"],
|
55 |
"train": ["20170110", "20170208", "20170215", "20170216", "20170222", "20170314", "20170322", "20170323", "20170403", "20170405", "20170419", "20170426", "20170503", "20170510", "20170516", "20170613", "20170615", "20171007", "20171012", "20171018", "20171024", "20171208", "20171211", "20171213", "20180316", "20180321", "20180404", "20180410", "20180411", "20180601", "20180613", "20180615"],
|
56 |
}
|
@@ -117,7 +117,7 @@ class Npsc(datasets.GeneratorBasedBuilder):
|
|
117 |
data_urls = {}
|
118 |
metadata_urls = {}
|
119 |
config_name = self.config.name
|
120 |
-
for split in ["train", "
|
121 |
metadata_urls[split] = []
|
122 |
data_urls[split] = []
|
123 |
for shard in _SHARDS[split]:
|
|
|
50 |
_METADATA_URL = "https://huggingface.co/datasets/NbAiLab/NPSC/resolve/main/data/{split}/{shard}.json"
|
51 |
|
52 |
_SHARDS = {
|
53 |
+
"eval": ["20170209", "20180109", "20180201", "20180307", "20180611"],
|
54 |
"test": ["20170207", "20171122", "20171219", "20180530"],
|
55 |
"train": ["20170110", "20170208", "20170215", "20170216", "20170222", "20170314", "20170322", "20170323", "20170403", "20170405", "20170419", "20170426", "20170503", "20170510", "20170516", "20170613", "20170615", "20171007", "20171012", "20171018", "20171024", "20171208", "20171211", "20171213", "20180316", "20180321", "20180404", "20180410", "20180411", "20180601", "20180613", "20180615"],
|
56 |
}
|
|
|
117 |
data_urls = {}
|
118 |
metadata_urls = {}
|
119 |
config_name = self.config.name
|
120 |
+
for split in ["train", "eval", "test"]:
|
121 |
metadata_urls[split] = []
|
122 |
data_urls[split] = []
|
123 |
for shard in _SHARDS[split]:
|