St4n commited on
Commit
b96fde4
·
1 Parent(s): f13da08

Update self_dataset.py

Browse files
Files changed (1) hide show
  1. self_dataset.py +4 -5
self_dataset.py CHANGED
@@ -40,7 +40,7 @@ in the e-banking domain, associated with spoken examples in 14 diverse language
40
  """
41
 
42
  _ALL_CONFIGS = sorted([
43
- "cs-CZ", "de-DE", "en-AU", "en-GB", "en-US", "es-ES", "fr-FR", "it-IT", "ko-KR", "nl-NL", "pl-PL", "pt-PT", "ru-RU", "zh-CN"
44
  ])
45
 
46
 
@@ -105,8 +105,7 @@ class ATC(datasets.GeneratorBasedBuilder):
105
  def _split_generators(self, dl_manager):
106
  langs = (
107
  _ALL_CONFIGS
108
- if self.config.name == "all"
109
- else [self.config.name]
110
  )
111
 
112
  archive_path = dl_manager.download_and_extract(self.config.data_url)
@@ -142,7 +141,7 @@ class ATC(datasets.GeneratorBasedBuilder):
142
 
143
  file_path = os.path.join(audio_path, *file_path.split("/"))
144
  yield key, {
145
- "path": file_path,
146
- "reference": transcription,
147
  }
148
  key += 1
 
40
  """
41
 
42
  _ALL_CONFIGS = sorted([
43
+ "en-US"
44
  ])
45
 
46
 
 
105
  def _split_generators(self, dl_manager):
106
  langs = (
107
  _ALL_CONFIGS
108
+ [self.config.name]
 
109
  )
110
 
111
  archive_path = dl_manager.download_and_extract(self.config.data_url)
 
141
 
142
  file_path = os.path.join(audio_path, *file_path.split("/"))
143
  yield key, {
144
+ "file_path": file_path,
145
+ "reference": reference,
146
  }
147
  key += 1