Update README.md
Browse files
README.md
CHANGED
|
@@ -14,7 +14,7 @@ viewer: false
|
|
| 14 |
|
| 15 |
## Description
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
## Usage
|
| 20 |
|
|
@@ -22,17 +22,34 @@ viewer: false
|
|
| 22 |
# Load the artifact
|
| 23 |
import pyterrier_alpha as pta
|
| 24 |
artifact = pta.Artifact.from_hf('pyterrier/fever.retromae.flex')
|
| 25 |
-
|
| 26 |
```
|
| 27 |
|
| 28 |
## Benchmarks
|
| 29 |
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
## Reproduction
|
| 33 |
|
| 34 |
```python
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
```
|
| 37 |
|
| 38 |
## Metadata
|
|
|
|
| 14 |
|
| 15 |
## Description
|
| 16 |
|
| 17 |
+
RetroMAE index for Fever
|
| 18 |
|
| 19 |
## Usage
|
| 20 |
|
|
|
|
| 22 |
# Load the artifact
|
| 23 |
import pyterrier_alpha as pta
|
| 24 |
artifact = pta.Artifact.from_hf('pyterrier/fever.retromae.flex')
|
| 25 |
+
artifact.np_retriever()
|
| 26 |
```
|
| 27 |
|
| 28 |
## Benchmarks
|
| 29 |
|
| 30 |
+
`fever/dev`
|
| 31 |
+
|
| 32 |
+
| name | nDCG@10 | R@1000 |
|
| 33 |
+
|:----------|----------:|---------:|
|
| 34 |
+
| np (flat) | 0.719 | 0.9578 |
|
| 35 |
+
|
| 36 |
+
`fever/test`
|
| 37 |
+
|
| 38 |
+
| name | nDCG@10 | R@1000 |
|
| 39 |
+
|:----------|----------:|---------:|
|
| 40 |
+
| np (flat) | 0.688 | 0.9615 |
|
| 41 |
|
| 42 |
## Reproduction
|
| 43 |
|
| 44 |
```python
|
| 45 |
+
import pyterrier as pt
|
| 46 |
+
from tqdm import tqdm
|
| 47 |
+
import ir_datasets
|
| 48 |
+
from pyterrier_dr import FlexIndex, RetroMAE
|
| 49 |
+
pipeline = RetroMAE.msmarco_distill() >> FlexIndex("fever.retromae.flex")
|
| 50 |
+
dataset = ir_datasets.load('beir/fever')
|
| 51 |
+
docs = ({'docno': d.doc_id, 'text': d.default_text()} for d in tqdm(dataset.docs))
|
| 52 |
+
pipeline.index(docs)
|
| 53 |
```
|
| 54 |
|
| 55 |
## Metadata
|