mnemlaghi commited on
Commit
bbe4a78
1 Parent(s): eeca5a2

new attempt

Browse files
Files changed (1) hide show
  1. widdd.py +2 -2
widdd.py CHANGED
@@ -99,6 +99,6 @@ class Widdd(datasets.GeneratorBasedBuilder):
99
  """Yields examples."""
100
  logging.info(f"Yielding {filepath}")
101
  with open(filepath, encoding = "utf8") as fp:
102
- for l in fp:
103
  d = json.loads(l)
104
- yield d
 
99
  """Yields examples."""
100
  logging.info(f"Yielding {filepath}")
101
  with open(filepath, encoding = "utf8") as fp:
102
+ for id_, l in enumerate(fp):
103
  d = json.loads(l)
104
+ yield id_, d