Duy1332002
commited on
Update instruct500k_vi.py
Browse files- instruct500k_vi.py +4 -5
instruct500k_vi.py
CHANGED
@@ -30,10 +30,11 @@ if fs.exists(_REPO_ID + "/images"):
|
|
30 |
])
|
31 |
|
32 |
class Instruct500k_ViConfig(datasets.BuilderConfig):
|
33 |
-
"""BuilderConfig for
|
34 |
|
35 |
def __init__(self, name, **kwargs):
|
36 |
"""
|
|
|
37 |
:param kwargs: Arguments.
|
38 |
"""
|
39 |
super().__init__(
|
@@ -45,7 +46,7 @@ class Instruct500k_ViConfig(datasets.BuilderConfig):
|
|
45 |
|
46 |
|
47 |
class Instruck500k_Vi(datasets.GeneratorBasedBuilder):
|
48 |
-
"""
|
49 |
BUILDER_CONFIGS = [Instruct500k_ViConfig(name) for name in _CONFIGS]
|
50 |
|
51 |
def _info(self) -> datasets.DatasetInfo:
|
@@ -119,9 +120,7 @@ class Instruck500k_Vi(datasets.GeneratorBasedBuilder):
|
|
119 |
"""
|
120 |
Generate examples.
|
121 |
:param split: Split.
|
122 |
-
:param
|
123 |
-
:param audio_dict: Paths to directory containing audio files.
|
124 |
-
:param transcript_dict: Paths to directory containing transcripts.
|
125 |
:return: Example.
|
126 |
"""
|
127 |
for i, sample in enumerate(split):
|
|
|
30 |
])
|
31 |
|
32 |
class Instruct500k_ViConfig(datasets.BuilderConfig):
|
33 |
+
"""BuilderConfig for Instruct500k_ViConfig."""
|
34 |
|
35 |
def __init__(self, name, **kwargs):
|
36 |
"""
|
37 |
+
:param name: Name of subset.
|
38 |
:param kwargs: Arguments.
|
39 |
"""
|
40 |
super().__init__(
|
|
|
46 |
|
47 |
|
48 |
class Instruck500k_Vi(datasets.GeneratorBasedBuilder):
|
49 |
+
"""Instruct500k Vi dataset."""
|
50 |
BUILDER_CONFIGS = [Instruct500k_ViConfig(name) for name in _CONFIGS]
|
51 |
|
52 |
def _info(self) -> datasets.DatasetInfo:
|
|
|
120 |
"""
|
121 |
Generate examples.
|
122 |
:param split: Split.
|
123 |
+
:param image_dict: Paths to directory containing image files.
|
|
|
|
|
124 |
:return: Example.
|
125 |
"""
|
126 |
for i, sample in enumerate(split):
|