Tools for running IR Evaluation Suites
Project description
🍬 SuiteEval
Tools for running IR Evaluation Suites with PyTerrier.
Installation
pip install suiteeval
Example Usage
You should define a function which produces pyterrier pipelines, if you do not want to lookup an index, the DatasetContext object provides tempoary paths and a corpus iterator for indexing.
The function can either return one or more pipelines or yield pipelines in the case that more complex memory management is required. Here is an example where we only keep one neural re-ranker in memory at a time while evaluating the BEIR suite.
You can choose to either return named systems (useful for larger evaluation) or just return the systems!
from suiteeval import BEIR
from pyterrier_pisa import PisaIndex
from pyterrier_dr import ElectraScorer
from pyterrier_t5 import MonoT5ReRanker
def pipelines(context):
index = PisaIndex(context.path + "/index.pisa")
index.index(context.get_corpus_iter())
bm25 = index.bm25()
yield bm25 >> context.text_loader() >> MonoT5ReRanker(), "BM25 >> monoT5"
yield bm25 >> context.text_loader() >> ElectraScorer(), "BM25 >> monoELECTRA"
results = BEIR(pipelines)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file suiteeval-0.1.1.tar.gz.
File metadata
- Download URL: suiteeval-0.1.1.tar.gz
- Upload date:
- Size: 21.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb17baa061b67038647afb8a23e1a695cdeabf6be6f298deb53dc691d965cfa4
|
|
| MD5 |
ad476baf18250d8bf92039097f4cbd04
|
|
| BLAKE2b-256 |
ae5100d187a761bf938da8c7e8b0a9e70b3478337ad0feaa2f46bacdf95a87cc
|
File details
Details for the file suiteeval-0.1.1-py3-none-any.whl.
File metadata
- Download URL: suiteeval-0.1.1-py3-none-any.whl
- Upload date:
- Size: 28.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60955721c3fe81bf51751d6669632d3ad0856dfac9664f3de8c1dd19406e25cf
|
|
| MD5 |
52b80b38d5f04cf8d60155668d9b8815
|
|
| BLAKE2b-256 |
4cbd71b3468abf03210ec0fe8e096cac849312feb292d837b4edb931bb9400f9
|