Daniel Campos
commited on
Commit
•
df6b636
1
Parent(s):
673b905
Update msmarco-passage-query-variation.py
Browse files
msmarco-passage-query-variation.py
CHANGED
@@ -103,7 +103,7 @@ class MsMarcoPassage(datasets.GeneratorBasedBuilder):
|
|
103 |
def _generate_examples(self, files):
|
104 |
"""Yields examples."""
|
105 |
for filepath in files:
|
106 |
-
with open(filepath
|
107 |
for line in f:
|
108 |
data = json.loads(line)
|
109 |
if data.get('negative_passages') is None:
|
|
|
103 |
def _generate_examples(self, files):
|
104 |
"""Yields examples."""
|
105 |
for filepath in files:
|
106 |
+
with open(filepath) as f:
|
107 |
for line in f:
|
108 |
data = json.loads(line)
|
109 |
if data.get('negative_passages') is None:
|