rkstgr commited on
Commit
0db8aaf
1 Parent(s): eb92059

Rename loading script

Browse files
Files changed (1) hide show
  1. mtg_jamendo.py → mtg-jamendo.py +1 -3
mtg_jamendo.py → mtg-jamendo.py RENAMED
@@ -74,7 +74,6 @@ class MtgJamendo(datasets.GeneratorBasedBuilder):
74
  "genres": datasets.Sequence(datasets.Value("string")),
75
  "instruments": datasets.Sequence(datasets.Value("string")),
76
  "moods": datasets.Sequence(datasets.Value("string")),
77
- "chunk_nr": datasets.Value("int32"),
78
  "audio": datasets.Audio(sampling_rate=22_050),
79
  }
80
  )
@@ -146,7 +145,6 @@ class MtgJamendo(datasets.GeneratorBasedBuilder):
146
  "genres": eval(tracks[_id]["genres"]),
147
  "instruments": eval(tracks[_id]["instruments"]),
148
  "moods": eval(tracks[_id]["moods"]),
149
- "chunk_nr": tracks[_id]["chunk_nr"],
150
  "audio": audio_path
151
  }
152
  yield _id, data
@@ -154,4 +152,4 @@ class MtgJamendo(datasets.GeneratorBasedBuilder):
154
 
155
  if __name__ == '__main__':
156
  mtg = MtgJamendo()
157
- mtg.download_and_prepare(ignore_verifications=True)
 
74
  "genres": datasets.Sequence(datasets.Value("string")),
75
  "instruments": datasets.Sequence(datasets.Value("string")),
76
  "moods": datasets.Sequence(datasets.Value("string")),
 
77
  "audio": datasets.Audio(sampling_rate=22_050),
78
  }
79
  )
 
145
  "genres": eval(tracks[_id]["genres"]),
146
  "instruments": eval(tracks[_id]["instruments"]),
147
  "moods": eval(tracks[_id]["moods"]),
 
148
  "audio": audio_path
149
  }
150
  yield _id, data
 
152
 
153
  if __name__ == '__main__':
154
  mtg = MtgJamendo()
155
+ mtg.download_and_prepare()