zhangirazerbayev commited on
Commit
fe87711
1 Parent(s): d61f006

fix bug introduced in last commit

Browse files
Files changed (1) hide show
  1. proof-pile.py +1 -1
proof-pile.py CHANGED
@@ -140,7 +140,7 @@ class ProofPile(datasets.GeneratorBasedBuilder):
140
  key = 0
141
  for name in data_files:
142
  with open(name) as f:
143
- instances = [json.load(x) for x in f.readlines() if x]
144
  for instance in instances:
145
  yield key, {"text": instance["text"],
146
  "meta": json.dumps(instance["meta"])}
 
140
  key = 0
141
  for name in data_files:
142
  with open(name) as f:
143
+ instances = [json.loads(x) for x in f.readlines() if x]
144
  for instance in instances:
145
  yield key, {"text": instance["text"],
146
  "meta": json.dumps(instance["meta"])}