gabrielaltay
commited on
Commit
•
b81d0ab
1
Parent(s):
865bd3d
test
Browse files- hacdc-wikipedia.py +2 -1
hacdc-wikipedia.py
CHANGED
@@ -160,7 +160,8 @@ 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 |
for data in datas:
|
165 |
#data = orjson.loads(line)
|
166 |
|
|
|
160 |
logger.info("generating examples from = %s", filepath)
|
161 |
with open(filepath, "r") as fp:
|
162 |
lines = fp.readlines()
|
163 |
+
big_string = '[{}]'.format(','.join(lines))
|
164 |
+
datas = orjson.loads(big_string)
|
165 |
for data in datas:
|
166 |
#data = orjson.loads(line)
|
167 |
|