Lexi commited on
Commit
3a4186e
·
1 Parent(s): 6e0efd1

Update NQ_squad_format.py

Browse files
Files changed (1) hide show
  1. NQ_squad_format.py +1 -1
NQ_squad_format.py CHANGED
@@ -94,7 +94,7 @@ class Squad(datasets.GeneratorBasedBuilder):
94
  """This function returns the examples in the raw (text) form."""
95
  logger.info("generating examples from = %s", filepath)
96
  key = 0
97
- with open(filepath, encoding="utf-8") as f:
98
  data = json.load(f)
99
  print("example data: ", data[0])
100
  for line in data:
 
94
  """This function returns the examples in the raw (text) form."""
95
  logger.info("generating examples from = %s", filepath)
96
  key = 0
97
+ with open(filepath, 'rb') as f:
98
  data = json.load(f)
99
  print("example data: ", data[0])
100
  for line in data: