Update MELD_Audio.py
Browse files- MELD_Audio.py +1 -5
MELD_Audio.py
CHANGED
@@ -76,7 +76,6 @@ class MELD_Audio(datasets.GeneratorBasedBuilder):
|
|
76 |
"test": "archive/test.tar.gz",
|
77 |
}
|
78 |
) # type: ignore # noqa: PGH003
|
79 |
-
path_to_clips = "MELD_Audio"
|
80 |
local_extracted_archive: dict[str, str] = (
|
81 |
dl_manager.extract(data_path)
|
82 |
if not dl_manager.is_streaming
|
@@ -95,7 +94,6 @@ class MELD_Audio(datasets.GeneratorBasedBuilder):
|
|
95 |
"split": "train",
|
96 |
"local_extracted_archive": local_extracted_archive["train"],
|
97 |
"audio_files": dl_manager.iter_archive(data_path["train"]),
|
98 |
-
"path_to_clips": path_to_clips,
|
99 |
},
|
100 |
),
|
101 |
datasets.SplitGenerator(
|
@@ -105,7 +103,6 @@ class MELD_Audio(datasets.GeneratorBasedBuilder):
|
|
105 |
"split": "dev",
|
106 |
"local_extracted_archive": local_extracted_archive["dev"],
|
107 |
"audio_files": dl_manager.iter_archive(data_path["dev"]),
|
108 |
-
"path_to_clips": path_to_clips,
|
109 |
},
|
110 |
),
|
111 |
datasets.SplitGenerator(
|
@@ -115,12 +112,11 @@ class MELD_Audio(datasets.GeneratorBasedBuilder):
|
|
115 |
"split": "test",
|
116 |
"local_extracted_archive": local_extracted_archive["test"],
|
117 |
"audio_files": dl_manager.iter_archive(data_path["test"]),
|
118 |
-
"path_to_clips": path_to_clips,
|
119 |
},
|
120 |
),
|
121 |
]
|
122 |
|
123 |
-
def _generate_examples(self, filepath, split, local_extracted_archive, audio_files
|
124 |
"""Yields examples."""
|
125 |
metadata_df = pd.read_csv(filepath, sep=",", index_col=0, header=0)
|
126 |
metadata = {}
|
|
|
76 |
"test": "archive/test.tar.gz",
|
77 |
}
|
78 |
) # type: ignore # noqa: PGH003
|
|
|
79 |
local_extracted_archive: dict[str, str] = (
|
80 |
dl_manager.extract(data_path)
|
81 |
if not dl_manager.is_streaming
|
|
|
94 |
"split": "train",
|
95 |
"local_extracted_archive": local_extracted_archive["train"],
|
96 |
"audio_files": dl_manager.iter_archive(data_path["train"]),
|
|
|
97 |
},
|
98 |
),
|
99 |
datasets.SplitGenerator(
|
|
|
103 |
"split": "dev",
|
104 |
"local_extracted_archive": local_extracted_archive["dev"],
|
105 |
"audio_files": dl_manager.iter_archive(data_path["dev"]),
|
|
|
106 |
},
|
107 |
),
|
108 |
datasets.SplitGenerator(
|
|
|
112 |
"split": "test",
|
113 |
"local_extracted_archive": local_extracted_archive["test"],
|
114 |
"audio_files": dl_manager.iter_archive(data_path["test"]),
|
|
|
115 |
},
|
116 |
),
|
117 |
]
|
118 |
|
119 |
+
def _generate_examples(self, filepath, split, local_extracted_archive, audio_files):
|
120 |
"""Yields examples."""
|
121 |
metadata_df = pd.read_csv(filepath, sep=",", index_col=0, header=0)
|
122 |
metadata = {}
|