gabrielaltay
commited on
Commit
•
5970942
1
Parent(s):
bd204a8
read uncompressed
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 |
print("FP", filepath)
|
162 |
-
with
|
163 |
for line in fp:
|
164 |
data = json.loads(line.decode("utf-8"))
|
165 |
|
|
|
159 |
for filepath in filepaths:
|
160 |
logger.info("generating examples from = %s", filepath)
|
161 |
print("FP", filepath)
|
162 |
+
with open(filepath, "r") as fp:
|
163 |
for line in fp:
|
164 |
data = json.loads(line.decode("utf-8"))
|
165 |
|