Update msmarco-passage.py
Browse files- msmarco-passage.py +1 -1
msmarco-passage.py
CHANGED
@@ -92,7 +92,7 @@ class MsMarcoPassage(datasets.GeneratorBasedBuilder):
|
|
92 |
with open(filepath, encoding="utf-8") as f:
|
93 |
for line in f:
|
94 |
data = json.loads(line)
|
95 |
-
if data.get('
|
96 |
data['neg_doc_ids'] = []
|
97 |
if data.get('pos_doc_ids') is None:
|
98 |
data['pos_doc_ids'] = []
|
|
|
92 |
with open(filepath, encoding="utf-8") as f:
|
93 |
for line in f:
|
94 |
data = json.loads(line)
|
95 |
+
if data.get('neg_doc_ids') is None:
|
96 |
data['neg_doc_ids'] = []
|
97 |
if data.get('pos_doc_ids') is None:
|
98 |
data['pos_doc_ids'] = []
|