Datasets:
Tasks:
Text Generation
Modalities:
Text
Sub-tasks:
language-modeling
Languages:
English
Size:
100K - 1M
License:
zhangirazerbayev
commited on
Commit
•
fe87711
1
Parent(s):
d61f006
fix bug introduced in last commit
Browse files- 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.
|
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"])}
|