nakkhatra commited on
Commit
04f526e
·
1 Parent(s): ab03617

Added train.tsv and replaced CommonVoiceBangla.py

Browse files
Files changed (2) hide show
  1. CommonVoiceBangla.py +1 -21
  2. train.tsv +3 -0
CommonVoiceBangla.py CHANGED
@@ -171,7 +171,7 @@ class CommonVoice(datasets.GeneratorBasedBuilder):
171
  gen_kwargs={
172
  "local_extracted_archive": local_extracted_archive,
173
  "archive_iterator": dl_manager.iter_archive(archive_path),
174
- "metadata_filepath": "/".join([path_to_data, "train.tsv"]) if path_to_data else "train.tsv",
175
  "path_to_clips": path_to_clips,
176
  },
177
  ),
@@ -193,26 +193,6 @@ class CommonVoice(datasets.GeneratorBasedBuilder):
193
  "path_to_clips": path_to_clips,
194
  },
195
  ),
196
- datasets.SplitGenerator(
197
- name="other",
198
- gen_kwargs={
199
- "local_extracted_archive": local_extracted_archive,
200
- "archive_iterator": dl_manager.iter_archive(archive_path),
201
- "metadata_filepath": "/".join([path_to_data, "other.tsv"]) if path_to_data else "other.tsv",
202
- "path_to_clips": path_to_clips,
203
- },
204
- ),
205
- datasets.SplitGenerator(
206
- name="invalidated",
207
- gen_kwargs={
208
- "local_extracted_archive": local_extracted_archive,
209
- "archive_iterator": dl_manager.iter_archive(archive_path),
210
- "metadata_filepath": "/".join([path_to_data, "invalidated.tsv"])
211
- if path_to_data
212
- else "invalidated.tsv",
213
- "path_to_clips": path_to_clips,
214
- },
215
- ),
216
  ]
217
 
218
  def _generate_examples(
 
171
  gen_kwargs={
172
  "local_extracted_archive": local_extracted_archive,
173
  "archive_iterator": dl_manager.iter_archive(archive_path),
174
+ "metadata_filepath": "train.tsv",
175
  "path_to_clips": path_to_clips,
176
  },
177
  ),
 
193
  "path_to_clips": path_to_clips,
194
  },
195
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
196
  ]
197
 
198
  def _generate_examples(
train.tsv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5993baed1c1c6919f94bf34cf40332fa584bfa6cadb750e3e1f4c28944a4c4d9
3
+ size 71873411