Commit
•
8146982
1
Parent(s):
b81d0ab
test
Browse files- hacdc-wikipedia.py +1 -1
hacdc-wikipedia.py
CHANGED
@@ -159,7 +159,7 @@ class HacdcWikimedia20220901(datasets.GeneratorBasedBuilder):
|
|
159 |
for filepath in filepaths:
|
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:
|
|
|
159 |
for filepath in filepaths:
|
160 |
logger.info("generating examples from = %s", filepath)
|
161 |
with open(filepath, "r") as fp:
|
162 |
+
lines = [line.strip() for line in fp.readlines()]
|
163 |
big_string = '[{}]'.format(','.join(lines))
|
164 |
datas = orjson.loads(big_string)
|
165 |
for data in datas:
|