Datasets:
Update simple_tamil.py
Browse files- simple_tamil.py +4 -3
simple_tamil.py
CHANGED
@@ -48,13 +48,14 @@ _URLS = {
|
|
48 |
|
49 |
class simple_data(datasets.GeneratorBasedBuilder):
|
50 |
|
51 |
-
|
52 |
def _info(self):
|
53 |
features = datasets.Features(
|
54 |
{
|
55 |
"audio": datasets.Audio(sampling_rate=16_000),
|
56 |
"path": datasets.Value("string"),
|
57 |
"sentence": datasets.Value("string"),
|
|
|
58 |
}
|
59 |
)
|
60 |
return datasets.DatasetInfo(
|
@@ -82,7 +83,7 @@ class simple_data(datasets.GeneratorBasedBuilder):
|
|
82 |
gen_kwargs={
|
83 |
"metadata_path": metadata_paths["train"],
|
84 |
"local_extracted_archive": local_extracted_train_archive,
|
85 |
-
"path_to_clips": train_dir
|
86 |
"audio_files": dl_manager.iter_archive(train_archive),
|
87 |
},
|
88 |
),
|
@@ -91,7 +92,7 @@ class simple_data(datasets.GeneratorBasedBuilder):
|
|
91 |
gen_kwargs={
|
92 |
"metadata_path": metadata_paths["test"],
|
93 |
"local_extracted_archive": local_extracted_test_archive,
|
94 |
-
"path_to_clips": test_dir
|
95 |
"audio_files": dl_manager.iter_archive(test_archive),
|
96 |
},
|
97 |
),
|
|
|
48 |
|
49 |
class simple_data(datasets.GeneratorBasedBuilder):
|
50 |
|
51 |
+
VERSION = datasets.Version("1.1.0")
|
52 |
def _info(self):
|
53 |
features = datasets.Features(
|
54 |
{
|
55 |
"audio": datasets.Audio(sampling_rate=16_000),
|
56 |
"path": datasets.Value("string"),
|
57 |
"sentence": datasets.Value("string"),
|
58 |
+
"length": datasets.Value("float")
|
59 |
}
|
60 |
)
|
61 |
return datasets.DatasetInfo(
|
|
|
83 |
gen_kwargs={
|
84 |
"metadata_path": metadata_paths["train"],
|
85 |
"local_extracted_archive": local_extracted_train_archive,
|
86 |
+
"path_to_clips": train_dir,
|
87 |
"audio_files": dl_manager.iter_archive(train_archive),
|
88 |
},
|
89 |
),
|
|
|
92 |
gen_kwargs={
|
93 |
"metadata_path": metadata_paths["test"],
|
94 |
"local_extracted_archive": local_extracted_test_archive,
|
95 |
+
"path_to_clips": test_dir,
|
96 |
"audio_files": dl_manager.iter_archive(test_archive),
|
97 |
},
|
98 |
),
|