change
Browse files- speechdat.py +4 -24
speechdat.py
CHANGED
@@ -28,34 +28,14 @@ _HOMEPAGE = ""
|
|
28 |
|
29 |
_LICENSE = ""
|
30 |
|
31 |
-
class SpeechDatConfig(datasets.BuilderConfig):
|
32 |
-
"""BuilderConfig for CommonVoice."""
|
33 |
-
|
34 |
-
def __init__(self, name, **kwargs):
|
35 |
-
"""
|
36 |
-
Args:
|
37 |
-
data_dir: `string`, the path to the folder containing the files in the
|
38 |
-
downloaded .tar
|
39 |
-
citation: `string`, citation for the data set
|
40 |
-
url: `string`, url for information about the data set
|
41 |
-
**kwargs: keyword arguments forwarded to super.
|
42 |
-
"""
|
43 |
-
|
44 |
-
self.date_of_snapshot = kwargs.pop("date", None)
|
45 |
-
self.size = kwargs.pop("size", None)
|
46 |
-
description = f"Speech Dat dataset"
|
47 |
-
super(SpeechDatConfig, self).__init__(
|
48 |
-
name=name, **kwargs
|
49 |
-
)
|
50 |
-
|
51 |
-
|
52 |
class SpeechDat(datasets.GeneratorBasedBuilder):
|
53 |
|
54 |
DEFAULT_WRITER_BATCH_SIZE = 1000
|
|
|
|
|
|
|
55 |
BUILDER_CONFIGS = [
|
56 |
-
|
57 |
-
name="SpeechDat",
|
58 |
-
)
|
59 |
]
|
60 |
|
61 |
def _info(self):
|
|
|
28 |
|
29 |
_LICENSE = ""
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
class SpeechDat(datasets.GeneratorBasedBuilder):
|
32 |
|
33 |
DEFAULT_WRITER_BATCH_SIZE = 1000
|
34 |
+
|
35 |
+
VERSION = datasets.Version("1.1.0")
|
36 |
+
|
37 |
BUILDER_CONFIGS = [
|
38 |
+
datasets.BuilderConfig(name="audio", version=VERSION, description="SpeechDat dataset"),
|
|
|
|
|
39 |
]
|
40 |
|
41 |
def _info(self):
|