crystina-z commited on
Commit
f54860e
·
verified ·
1 Parent(s): 0b401dc

Update miracl-reranking.py

Browse files
Files changed (1) hide show
  1. miracl-reranking.py +5 -13
miracl-reranking.py CHANGED
@@ -85,19 +85,11 @@ class MIRACLReranking(datasets.GeneratorBasedBuilder):
85
  ]
86
 
87
  def _info(self):
88
- features = datasets.Features({
89
- 'query_id': datasets.Value('string'),
90
- 'query': datasets.Value('string'),
91
-
92
- 'positive_passages': [{
93
- 'docid': datasets.Value('string'),
94
- 'text': datasets.Value('string'), 'title': datasets.Value('string')
95
- }],
96
- 'negative_passages': [{
97
- 'docid': datasets.Value('string'),
98
- 'text': datasets.Value('string'), 'title': datasets.Value('string'),
99
- }],
100
- })
101
 
102
  return datasets.DatasetInfo(
103
  # This is the description that will appear on the datasets page.
 
85
  ]
86
 
87
  def _info(self):
88
+ features = datasets.Features(
89
+ query=datasets.Value("string"),
90
+ positive=datasets.Sequence(datasets.Value("string")),
91
+ negative=datasets.Sequence(datasets.Value("string")),
92
+ )
 
 
 
 
 
 
 
 
93
 
94
  return datasets.DatasetInfo(
95
  # This is the description that will appear on the datasets page.