Skip to main content

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

suiteeval-0.1.1.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

suiteeval-0.1.1-py3-none-any.whl (28.8 kB view details)

Uploaded Python 3

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

Hashes for suiteeval-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fb17baa061b67038647afb8a23e1a695cdeabf6be6f298deb53dc691d965cfa4
MD5 ad476baf18250d8bf92039097f4cbd04
BLAKE2b-256 ae5100d187a761bf938da8c7e8b0a9e70b3478337ad0feaa2f46bacdf95a87cc

See more details on using hashes here.

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

Hashes for suiteeval-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 60955721c3fe81bf51751d6669632d3ad0856dfac9664f3de8c1dd19406e25cf
MD5 52b80b38d5f04cf8d60155668d9b8815
BLAKE2b-256 4cbd71b3468abf03210ec0fe8e096cac849312feb292d837b4edb931bb9400f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page