gabrielaltay
commited on
Commit
·
b93528e
1
Parent(s):
a7b0cef
test
Browse files- hacdc-wikipedia.py +2 -1
hacdc-wikipedia.py
CHANGED
@@ -159,7 +159,8 @@ 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 |
-
|
|
|
163 |
data = orjson.loads(line)
|
164 |
|
165 |
if self.config.name == "all":
|
|
|
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 |
+
for line in lines:
|
164 |
data = orjson.loads(line)
|
165 |
|
166 |
if self.config.name == "all":
|