gabrielaltay
commited on
Commit
•
865bd3d
1
Parent(s):
b93528e
test
Browse files- hacdc-wikipedia.py +3 -2
hacdc-wikipedia.py
CHANGED
@@ -160,8 +160,9 @@ class HacdcWikimedia20220901(datasets.GeneratorBasedBuilder):
|
|
160 |
logger.info("generating examples from = %s", filepath)
|
161 |
with open(filepath, "r") as fp:
|
162 |
lines = fp.readlines()
|
163 |
-
|
164 |
-
|
|
|
165 |
|
166 |
if self.config.name == "all":
|
167 |
yield _id, data
|
|
|
160 |
logger.info("generating examples from = %s", filepath)
|
161 |
with open(filepath, "r") as fp:
|
162 |
lines = fp.readlines()
|
163 |
+
datas = orjson.loads(lines)
|
164 |
+
for data in datas:
|
165 |
+
#data = orjson.loads(line)
|
166 |
|
167 |
if self.config.name == "all":
|
168 |
yield _id, data
|