Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-retrieval
|
| 5 |
+
tags:
|
| 6 |
+
- information-retrieval
|
| 7 |
+
- lotte
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# LoTTE (small extracts)
|
| 11 |
+
|
| 12 |
+
Small, teaching-sized extracts of [LoTTE](https://github.com/stanford-futuredata/ColBERT/blob/main/LoTTE.md)
|
| 13 |
+
(*Long-Tail Topic-stratified Evaluation*), built from the public
|
| 14 |
+
[`colbertv2/lotte_passages`](https://huggingface.co/datasets/colbertv2/lotte_passages)
|
| 15 |
+
dataset (Apache 2.0). Prepared for the practicals of *Deep Learning pour le
|
| 16 |
+
texte* (Formation Continue, Sorbonne Université) — see
|
| 17 |
+
`practicals/scripts/prepare-lotte-corpus.py` in the course repo for the build
|
| 18 |
+
script.
|
| 19 |
+
|
| 20 |
+
Each variant is a self-contained folder:
|
| 21 |
+
|
| 22 |
+
```
|
| 23 |
+
<variant>/
|
| 24 |
+
documents/ impact-index DocumentStore (key `docno` -> text)
|
| 25 |
+
queries.tsv qid, query
|
| 26 |
+
qrels.tsv qid, docno, label
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
## Variants
|
| 30 |
+
|
| 31 |
+
- **`technology-3000`** — technology domain, dev split. 150 search queries
|
| 32 |
+
(with qrels), 3 365 documents (365 required by the qrels + a uniform random
|
| 33 |
+
sample of ~3000 others).
|
| 34 |
+
|
| 35 |
+
## Loading
|
| 36 |
+
|
| 37 |
+
```python
|
| 38 |
+
from huggingface_hub import snapshot_download
|
| 39 |
+
import impact_index, pandas as pd
|
| 40 |
+
|
| 41 |
+
local_dir = snapshot_download(
|
| 42 |
+
"bpiwowar/lotte", repo_type="dataset", allow_patterns="technology-3000/*"
|
| 43 |
+
)
|
| 44 |
+
docstore = impact_index.DocumentStore.load(f"{local_dir}/technology-3000/documents")
|
| 45 |
+
queries_df = pd.read_csv(f"{local_dir}/technology-3000/queries.tsv", sep="\t", dtype=str)
|
| 46 |
+
qrels_df = pd.read_csv(f"{local_dir}/technology-3000/qrels.tsv", sep="\t", dtype=str)
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
## Citation
|
| 50 |
+
|
| 51 |
+
```bibtex
|
| 52 |
+
@inproceedings{santhanam-etal-2022-colbertv2,
|
| 53 |
+
title = "{C}ol{BERT}v2: Effective and Efficient Retrieval via Lightweight Late Interaction",
|
| 54 |
+
author = "Santhanam, Keshav and Khattab, Omar and Saad-Falcon, Jon and Potts, Christopher and Zaharia, Matei",
|
| 55 |
+
booktitle = "Proceedings of NAACL-HLT 2022",
|
| 56 |
+
year = "2022",
|
| 57 |
+
url = "https://aclanthology.org/2022.naacl-main.272",
|
| 58 |
+
}
|
| 59 |
+
```
|