Update MELD_Audio.py
Browse files- MELD_Audio.py +19 -4
MELD_Audio.py
CHANGED
|
@@ -39,12 +39,27 @@ The audio is extracted from MELD mp4 files while the audio only has one channel
|
|
| 39 |
_LICENSE = "gpl-3.0"
|
| 40 |
|
| 41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
class MELD_Audio(datasets.GeneratorBasedBuilder):
|
| 43 |
-
"""TODO: Short description of my dataset."""
|
| 44 |
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
|
|
|
| 48 |
]
|
| 49 |
|
| 50 |
def _info(self):
|
|
|
|
| 39 |
_LICENSE = "gpl-3.0"
|
| 40 |
|
| 41 |
|
| 42 |
+
class MELDAudioConfig(datasets.BuilderConfig):
|
| 43 |
+
"""BuilderConfig for MELD_Audio."""
|
| 44 |
+
|
| 45 |
+
def __init__(self, **kwargs):
|
| 46 |
+
"""
|
| 47 |
+
Args:
|
| 48 |
+
data_dir: `string`, the path to the folder containing the files in the
|
| 49 |
+
downloaded .tar
|
| 50 |
+
citation: `string`, citation for the data set
|
| 51 |
+
url: `string`, url for information about the data set
|
| 52 |
+
**kwargs: keyword arguments forwarded to super.
|
| 53 |
+
"""
|
| 54 |
+
super(MELDAudioConfig, self).__init__(version=datasets.Version("0.0.1", ""), **kwargs)
|
| 55 |
+
|
| 56 |
+
|
| 57 |
class MELD_Audio(datasets.GeneratorBasedBuilder):
|
|
|
|
| 58 |
|
| 59 |
+
DEFAULT_WRITER_BATCH_SIZE = 256
|
| 60 |
+
DEFAULT_CONFIG_NAME = "MELD_Audio"
|
| 61 |
+
BUILDER_CONFIGS = [
|
| 62 |
+
MELDAudioConfig(name="MELD_Audio", description="all speech."),
|
| 63 |
]
|
| 64 |
|
| 65 |
def _info(self):
|