gabrielaltay commited on
Commit
a7b0cef
·
1 Parent(s): bdeba0d
Files changed (1) hide show
  1. hacdc-wikipedia.py +1 -1
hacdc-wikipedia.py CHANGED
@@ -160,7 +160,7 @@ class HacdcWikimedia20220901(datasets.GeneratorBasedBuilder):
160
  logger.info("generating examples from = %s", filepath)
161
  with open(filepath, "r") as fp:
162
  for line in fp:
163
- data = json.loads(line)
164
 
165
  if self.config.name == "all":
166
  yield _id, data
 
160
  logger.info("generating examples from = %s", filepath)
161
  with open(filepath, "r") as fp:
162
  for line in fp:
163
+ data = orjson.loads(line)
164
 
165
  if self.config.name == "all":
166
  yield _id, data