Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,49 @@
|
|
1 |
-
---
|
2 |
-
license: cc-by-sa-4.0
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: cc-by-sa-4.0
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
---
|
6 |
+
# Dataset Card
|
7 |
+
|
8 |
+
## Dataset Details
|
9 |
+
This dataset contains a set of candidate documents for second-stage re-ranking on msmarco
|
10 |
+
(dev, test split in [BEIR](https://huggingface.co/BeIR)). Those candidate documents are composed of hard negatives mined from
|
11 |
+
[gtr-t5-xl](https://huggingface.co/sentence-transformers/gtr-t5-xl) as Stage 1 ranker
|
12 |
+
and ground-truth documents that are known to be relevant to the query. This is a release from our paper
|
13 |
+
[Policy-Gradient Training of Language Models for Ranking](https://gao-g.github.io/), so
|
14 |
+
please cite it if using this dataset.
|
15 |
+
|
16 |
+
## Direct Use
|
17 |
+
You can load the dataset by:
|
18 |
+
```python
|
19 |
+
from datasets import load_dataset
|
20 |
+
dataset = load_dataset("NeuralPGRank/msmarco-hard-negatives")
|
21 |
+
```
|
22 |
+
Each example is an dictionary:
|
23 |
+
```python
|
24 |
+
>>> python dataset['test'][0]
|
25 |
+
{
|
26 |
+
"qid" : ..., # query ID
|
27 |
+
"topk" : {
|
28 |
+
doc ID: ..., # document ID as the key; None or a score as the value
|
29 |
+
doc ID: ...,
|
30 |
+
...
|
31 |
+
},
|
32 |
+
}
|
33 |
+
```
|
34 |
+
|
35 |
+
|
36 |
+
## Citation
|
37 |
+
```
|
38 |
+
@inproceedings{Gao2023PolicyGradientTO,
|
39 |
+
title={Policy-Gradient Training of Language Models for Ranking},
|
40 |
+
author={Ge Gao and Jonathan D. Chang and Claire Cardie and Kiant{\'e} Brantley and Thorsten Joachims},
|
41 |
+
booktitle={Conference on Neural Information Processing Systems (Foundation Models for Decising Making Workshop)},
|
42 |
+
year={2023},
|
43 |
+
url={https://arxiv.org/pdf/2310.04407}
|
44 |
+
}
|
45 |
+
```
|
46 |
+
|
47 |
+
|
48 |
+
## Dataset Card Author and Contact
|
49 |
+
[Ge Gao](https://gao-g.github.io/)
|