martingrzzler commited on
Commit
c736f67
1 Parent(s): 52ecf39

Update kanjis2radicals.py

Browse files
Files changed (1) hide show
  1. kanjis2radicals.py +1 -1
kanjis2radicals.py CHANGED
@@ -57,7 +57,7 @@ class Kanji2Radicals(datasets.GeneratorBasedBuilder):
57
  with open(metadata_path, encoding="utf-8") as f:
58
  for line in f:
59
  metadata = json.loads(line)
60
- meta_kanjis[metadata["id"]] = metadata
61
 
62
  for idx, (image_path, image) in enumerate(images_iter):
63
  characters = image_path.split("/")[-1].split(".")[0]
 
57
  with open(metadata_path, encoding="utf-8") as f:
58
  for line in f:
59
  metadata = json.loads(line)
60
+ meta_kanjis[metadata["characters"]] = metadata
61
 
62
  for idx, (image_path, image) in enumerate(images_iter):
63
  characters = image_path.split("/")[-1].split(".")[0]