File size: 1,010 Bytes
90870c8 7c3346e 90870c8 7c3346e 90870c8 7c3346e 90870c8 7c3346e 90870c8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
---
# pretty_name: "" # Example: "MS MARCO Terrier Index"
tags:
- pyterrier
- pyterrier-artifact
- pyterrier-artifact.indexer_cache
- pyterrier-artifact.indexer_cache.lz4pickle
task_categories:
- text-retrieval
viewer: false
---
# SPLADE vector cache for Vaswani
## Description
A SPLADE vector cache for the Vaswani dataset.
## Usage
```python
>>> # Load the artifact
>>> from pyterrier_caching import IndexerCache
>>> cache = IndexerCache.from_hf('macavaney/vaswani.splade.cache')
>>> len(cache)
11429
```
## Benchmarks
*TODO: Provide benchmarks for the artifact.*
## Reproduction
```python
import pyterrier as pt
pt.init()
from pyterrier_caching import IndexerCache
from pyt_splade import Splade
splade = Splade()
cache = IndexerCache('vaswani.splade.cache')
dataset = pt.get_dataset('irds:vaswani')
pipeline = splade.doc_encoder() >> cache.indexer()
pipeline.index(dataset.get_corpus_iter())
```
## Metadata
```
{
"type": "indexer_cache",
"format": "lz4pickle",
"record_count": 11429
}
```
|