zyznull commited on
Commit
2d6cfee
1 Parent(s): 0d33e64

Update msmarco-passage-corpus.py

Browse files
Files changed (1) hide show
  1. msmarco-passage-corpus.py +2 -1
msmarco-passage-corpus.py CHANGED
@@ -40,6 +40,7 @@ class MsMarcoPassage(datasets.GeneratorBasedBuilder):
40
  def _info(self):
41
  features = datasets.Features({
42
  '_id': datasets.Value('string'),
 
43
  'text': datasets.Value('string'),
44
  })
45
  return datasets.DatasetInfo(
@@ -74,5 +75,5 @@ class MsMarcoPassage(datasets.GeneratorBasedBuilder):
74
  with open(filepath, encoding="utf-8") as f:
75
  for i, line in enumerate(f):
76
  line = line.strip().split('\t')
77
- item = {'_id': line[0], 'text': line[1]}
78
  yield i, item
 
40
  def _info(self):
41
  features = datasets.Features({
42
  '_id': datasets.Value('string'),
43
+ 'title': datasets.Value('string'),
44
  'text': datasets.Value('string'),
45
  })
46
  return datasets.DatasetInfo(
 
75
  with open(filepath, encoding="utf-8") as f:
76
  for i, line in enumerate(f):
77
  line = line.strip().split('\t')
78
+ item = {'_id': line[0], '_title': line[1], 'text': line[2]}
79
  yield i, item