Update NQ_squad_format.py
Browse files- NQ_squad_format.py +2 -0
NQ_squad_format.py
CHANGED
@@ -98,6 +98,8 @@ class Squad(datasets.GeneratorBasedBuilder):
|
|
98 |
with open(filepath, 'rb') as f:
|
99 |
data = json.load(f)
|
100 |
print("example data: ", data[0])
|
|
|
|
|
101 |
for line in data:
|
102 |
yield key, {
|
103 |
"context": line['context'],
|
|
|
98 |
with open(filepath, 'rb') as f:
|
99 |
data = json.load(f)
|
100 |
print("example data: ", data[0])
|
101 |
+
print("number of data: ", len(data))
|
102 |
+
print("data keys: ", data[0].keys())
|
103 |
for line in data:
|
104 |
yield key, {
|
105 |
"context": line['context'],
|