martingrzzler commited on
Commit
f90fa9f
·
1 Parent(s): a0ad9b0

Update kanjis2radicals.py

Browse files
Files changed (1) hide show
  1. kanjis2radicals.py +3 -1
kanjis2radicals.py CHANGED
@@ -38,7 +38,7 @@ class Kanji2Radicals(datasets.GeneratorBasedBuilder):
38
  )
39
 
40
  def _split_generators(self, dl_manager):
41
- metadata_path = dl_manager.download_and_extract(_METADATA_URL)
42
  images_path = dl_manager.download_and_extract(_IMAGES_URL)
43
  images_iter = dl_manager.iter_archive(images_path)
44
 
@@ -54,6 +54,8 @@ class Kanji2Radicals(datasets.GeneratorBasedBuilder):
54
 
55
  def _generate_examples(self, metadata_path, images_iter):
56
  radicals = []
 
 
57
 
58
  with open(metadata_path, encoding="utf-8") as f:
59
  for line in f:
 
38
  )
39
 
40
  def _split_generators(self, dl_manager):
41
+ metadata_path = dl_manager.download(_METADATA_URL)
42
  images_path = dl_manager.download_and_extract(_IMAGES_URL)
43
  images_iter = dl_manager.iter_archive(images_path)
44
 
 
54
 
55
  def _generate_examples(self, metadata_path, images_iter):
56
  radicals = []
57
+ print(images_iter)
58
+ print("HI THERE")
59
 
60
  with open(metadata_path, encoding="utf-8") as f:
61
  for line in f: