Update miracl-reranking.py
Browse files- 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 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
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.
|