xxazz commited on
Commit
aa8b2a2
1 Parent(s): 027dbf6

Update msmarco-passage.py

Browse files
Files changed (1) hide show
  1. 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('neg_doc_idss') is None:
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'] = []