Datasets:
aembryonic
commited on
Commit
•
472d22c
1
Parent(s):
6282bcf
version name
Browse files
humset.py
CHANGED
@@ -253,10 +253,10 @@ class Humset(datasets.GeneratorBasedBuilder):
|
|
253 |
|
254 |
"""This function returns the examples in the raw (text) form."""
|
255 |
with open(filepath, encoding="utf-8") as f:
|
|
|
256 |
idx = 0
|
257 |
-
for line in
|
258 |
-
|
259 |
-
row = json.load(line)
|
260 |
if self.config.name == "1.0.0":
|
261 |
yield idx, row
|
262 |
#for example in duorc:
|
|
|
253 |
|
254 |
"""This function returns the examples in the raw (text) form."""
|
255 |
with open(filepath, encoding="utf-8") as f:
|
256 |
+
data = list(f)
|
257 |
idx = 0
|
258 |
+
for line in data:
|
259 |
+
row = json.loads(line)
|
|
|
260 |
if self.config.name == "1.0.0":
|
261 |
yield idx, row
|
262 |
#for example in duorc:
|