cahya commited on
Commit
0dbeda6
1 Parent(s): d64e6c1

rm some features

Browse files
Files changed (1) hide show
  1. fleurs.py +0 -17
fleurs.py CHANGED
@@ -98,18 +98,9 @@ class Fleurs(datasets.GeneratorBasedBuilder):
98
  langs = _ALL_CONFIGS
99
  features = datasets.Features(
100
  {
101
- "id": datasets.Value("int32"),
102
- "num_samples": datasets.Value("int32"),
103
  "path": datasets.Value("string"),
104
- # "audio": datasets.Audio(sampling_rate=48_000),
105
  "audio": datasets.features.Audio(sampling_rate=48_000),
106
- "transcription": datasets.Value("string"),
107
  "sentence": datasets.Value("string"),
108
- "lang_id": datasets.ClassLabel(names=langs),
109
- "language": datasets.Value("string"),
110
- "lang_group_id": datasets.ClassLabel(
111
- names=list(_FLEURS_GROUP_TO_LONG.keys())
112
- ),
113
  }
114
  )
115
 
@@ -203,15 +194,7 @@ class Fleurs(datasets.GeneratorBasedBuilder):
203
  lang_group = _FLEURS_LANG_TO_GROUP[lang_id]
204
 
205
  data[file_name] = {
206
- "id": int(_id),
207
  "sentence": raw_transcription,
208
- "transcription": transcription,
209
- "num_samples": int(num_samples),
210
- "lang_id": _FLEURS_LANG.index(lang_id),
211
- "language": _FLEURS_LANG_TO_LONG[lang_id],
212
- "lang_group_id": list(_FLEURS_GROUP_TO_LONG.keys()).index(
213
- lang_group
214
- ),
215
  }
216
 
217
  return data
 
98
  langs = _ALL_CONFIGS
99
  features = datasets.Features(
100
  {
 
 
101
  "path": datasets.Value("string"),
 
102
  "audio": datasets.features.Audio(sampling_rate=48_000),
 
103
  "sentence": datasets.Value("string"),
 
 
 
 
 
104
  }
105
  )
106
 
 
194
  lang_group = _FLEURS_LANG_TO_GROUP[lang_id]
195
 
196
  data[file_name] = {
 
197
  "sentence": raw_transcription,
 
 
 
 
 
 
 
198
  }
199
 
200
  return data