Update NQ_squad_format.py
Browse files- 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,
|
| 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:
|