Arie Cattan commited on
Commit
02347ac
1 Parent(s): 4341e1d
Files changed (1) hide show
  1. scico.py +2 -2
scico.py CHANGED
@@ -83,5 +83,5 @@ class Scico(datasets.GeneratorBasedBuilder):
83
  """This function returns the examples in the raw (text) form."""
84
  print(filepath)
85
  with jsonlines.open(filepath, 'r') as f:
86
- for topic in f:
87
- yield topic
 
83
  """This function returns the examples in the raw (text) form."""
84
  print(filepath)
85
  with jsonlines.open(filepath, 'r') as f:
86
+ for i, topic in enumerate(f):
87
+ yield i, topic