iulik-pisik commited on
Commit
732c564
1 Parent(s): 1e77c85

Update horoscop_urania.py

Browse files
Files changed (1) hide show
  1. horoscop_urania.py +18 -3
horoscop_urania.py CHANGED
@@ -28,9 +28,24 @@ class HoroscopUrania(GeneratorBasedBuilder):
28
  )
29
 
30
 
31
- def _generate_examples(self):
32
- archive_path = dl_manager.download_and_extract(_AUDIO_URL)
33
- tsv_path = dl_manager.download(_TRANSCRIPT_URL)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  with open(tsv_path, encoding="utf-8") as f:
36
  reader = csv.DictReader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
 
28
  )
29
 
30
 
31
+ def _split_generators(self, dl_manager):
32
+
33
+ downloaded_audio_files = dl_manager.download_and_extract(_AUDIO_URL)
34
+ downloaded_tsv_files = dl_manager.download(_TRANSCRIPT_URL)
35
+
36
+ return [
37
+ SplitGenerator(
38
+ name=Split.ALL,
39
+ gen_kwargs={
40
+ "archive_path": downloaded_audio_files,
41
+ "tsv_path": downloaded_tsv_files,
42
+ },
43
+ ),
44
+ ]
45
+
46
+
47
+
48
+ def _generate_examples(self, archive_path, tsv_path):
49
 
50
  with open(tsv_path, encoding="utf-8") as f:
51
  reader = csv.DictReader(f, delimiter="\t", quoting=csv.QUOTE_NONE)