Sebastien Montella commited on
Commit
f6268c1
1 Parent(s): 4e662f6
Files changed (1) hide show
  1. simpitiki.py +1 -1
simpitiki.py CHANGED
@@ -255,7 +255,7 @@ class SIMPITIKI(datasets.GeneratorBasedBuilder):
255
  # The `key` is here for legacy reason (tfds) and is not important in itself.
256
 
257
  with open(filepath, encoding="utf-8") as f:
258
- for id_, row in enumerate(data):
259
  data = json.loads(row)
260
  yield id_, {
261
  "text": data["text"],
 
255
  # The `key` is here for legacy reason (tfds) and is not important in itself.
256
 
257
  with open(filepath, encoding="utf-8") as f:
258
+ for id_, row in enumerate(f):
259
  data = json.loads(row)
260
  yield id_, {
261
  "text": data["text"],