Update misophoniaSounds.py
Browse files- misophoniaSounds.py +9 -8
misophoniaSounds.py
CHANGED
@@ -8,13 +8,14 @@ _HOMEPAGE = "https://huggingface.co/datasets/mskov/misophoniaSounds"
|
|
8 |
_CITATION = ""
|
9 |
_DESCRIPTION = "Dataset for misophonia inducing sound detection"
|
10 |
_DATA_URLS = {
|
11 |
-
"https://huggingface.co/datasets/mskov/misophoniaSounds/data/all_audio.tar.gz"
|
|
|
12 |
}
|
13 |
_PROMPTS_URLS ={
|
14 |
-
"train": "https://huggingface.co/datasets/mskov/misophoniaSounds/data/train_prompts.csv",
|
15 |
-
"test": "https://huggingface.co/datasets/mskov/misophoniaSounds/data/test_prompts.csv"
|
16 |
-
|
17 |
-
|
18 |
}
|
19 |
_NAMES = ["breathing", "chewing", "coughing", "mouth_sounds", "lip_smack", "sniffling", "yawn"]
|
20 |
|
@@ -26,15 +27,15 @@ class Miso(datasets.GeneratorBasedBuilder):
|
|
26 |
features=datasets.Features(
|
27 |
{
|
28 |
"audio": datasets.Audio(sampling_rate=16_000),
|
29 |
-
"transcript": datasets.features.ClassLabel(names=_NAMES),
|
30 |
-
|
31 |
}
|
32 |
),
|
33 |
#supervised_keys=("audio"),
|
34 |
supervised_keys=None,
|
35 |
homepage=_HOMEPAGE,
|
36 |
citation=_CITATION,
|
37 |
-
task_templates=[AutomaticSpeechRecognition(audio_column="audio", transcription_column="
|
38 |
)
|
39 |
def _split_generators(self, dl_manager):
|
40 |
#data_files = dl_manager.download_and_extract(_DATA_URLS),
|
|
|
8 |
_CITATION = ""
|
9 |
_DESCRIPTION = "Dataset for misophonia inducing sound detection"
|
10 |
_DATA_URLS = {
|
11 |
+
#"https://huggingface.co/datasets/mskov/misophoniaSounds/data/all_audio.tar.gz"
|
12 |
+
"data/all_audio.tar.gz"
|
13 |
}
|
14 |
_PROMPTS_URLS ={
|
15 |
+
#"train": "https://huggingface.co/datasets/mskov/misophoniaSounds/data/train_prompts.csv",
|
16 |
+
#"test": "https://huggingface.co/datasets/mskov/misophoniaSounds/data/test_prompts.csv"
|
17 |
+
"train": "data/rain_prompts.csv",
|
18 |
+
"test": "data/test_prompts.csv"
|
19 |
}
|
20 |
_NAMES = ["breathing", "chewing", "coughing", "mouth_sounds", "lip_smack", "sniffling", "yawn"]
|
21 |
|
|
|
27 |
features=datasets.Features(
|
28 |
{
|
29 |
"audio": datasets.Audio(sampling_rate=16_000),
|
30 |
+
#"transcript": datasets.features.ClassLabel(names=_NAMES),
|
31 |
+
"transcript": datasets.Value("string"),
|
32 |
}
|
33 |
),
|
34 |
#supervised_keys=("audio"),
|
35 |
supervised_keys=None,
|
36 |
homepage=_HOMEPAGE,
|
37 |
citation=_CITATION,
|
38 |
+
task_templates=[AutomaticSpeechRecognition(audio_column="audio", transcription_column="transcript")],
|
39 |
)
|
40 |
def _split_generators(self, dl_manager):
|
41 |
#data_files = dl_manager.download_and_extract(_DATA_URLS),
|