martingrzzler
commited on
Commit
•
0f82e58
1
Parent(s):
23fa807
Update kanjis2radicals.py
Browse files- kanjis2radicals.py +1 -1
kanjis2radicals.py
CHANGED
@@ -56,6 +56,6 @@ class Kanji2Radicals(datasets.GeneratorBasedBuilder):
|
|
56 |
for line in f:
|
57 |
metadata = json.loads(line)
|
58 |
yield metadata["id"], {
|
59 |
-
"kanji_image": next(images_iter).read(),
|
60 |
"radicals": metadata,
|
61 |
}
|
|
|
56 |
for line in f:
|
57 |
metadata = json.loads(line)
|
58 |
yield metadata["id"], {
|
59 |
+
"kanji_image": next(iter(images_iter)).read(),
|
60 |
"radicals": metadata,
|
61 |
}
|