Skip to main content

trec-eval für Windows

Windows-x64-Paketierung des aktuellen usnistgov/trec_eval-Stands (35cf096) mit einer einfachen Python-API. Die Berechnungen und kanonischen Metriknamen kommen aus der Upstream-Binary; dadurch bleiben all_trec, all_prefs, qrels_jg, Z-Scores und die vollständige CLI kompatibel.

Installation

py -m pip install trec-eval

Das Paket enthält trec_eval.exe und benötigt unter Windows x64 keine separate C-, .NET- oder Unix-Installation.

Python-API

from trec_eval import evaluate

result = evaluate(
    "qrels.txt",
    "run.txt",
    measures=["map", "P.10"],
    query=True,
)

print(result.summary["map"])
print(result.get("P_10"))  # kanonischer TREC-Name

Zusätzlich stehen read_qrels, read_run und run_cli zur Verfügung. Für nicht abgebildete Upstream-Optionen kann extra_args verwendet werden.

CLI

trec-eval -m all_trec qrels.txt run.txt
python -m trec_eval -q -m map qrels.txt run.txt

Die Eingabeformate qrels, qrels_jg, prefs, qrels_prefs und trec_results sowie die Upstream-Optionen werden unterstützt.

Aus dem Quellcode bauen

Voraussetzungen: Windows x64, PowerShell und ein C-Compiler (getestet mit LLVM-MinGW/clang). Die Upstream-Submodule müssen vorhanden sein.

git clone --recursive <repository-url>
.\scripts\build_windows.bat
py -m pip install build
py -m build

Das Wheel liegt anschließend unter dist/. Vor dem Paketbau müssen build/bin/trec_eval.exe und src/trec_eval/bin/trec_eval.exe vorhanden sein. Tests:

py -m unittest discover -s tests -v

Lizenz

Der Upstream-Code steht unter dem in LICENSE enthaltenen NIST-Hinweis. Die Lizenzen der Windows-Hilfsbibliotheken liegen unter src/trec_eval/licenses/ und werden in das Paket übernommen.

Metadata

Release files for trec-eval 10.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for trec-eval 10.0.0
File Size Uploaded Provenance Actions
trec_eval-10.0.0.tar.gz 95.0 kB Without provenance Details for trec_eval-10.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for trec-eval 10.0.0
File Interpreter ABI Platform Actions
trec_eval-10.0.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for trec_eval-10.0.0-py3-none-win_amd64.whl

Total release size: 193.4 kB

Release files / trec_eval-10.0.0.tar.gz

Download URL trec_eval-10.0.0.tar.gz
Size 95.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e38446d33457ff9bdb82a4ff13b07e6bd87fa16a3f17cd4bb3562e63c31385db
BLAKE2b-256 checksum
How to use checksums
fe43f8d14f577c02c026389113a3973dc6156b5623d12f59edf718d960fff3c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Release files / trec_eval-10.0.0-py3-none-win_amd64.whl

Download URL trec_eval-10.0.0-py3-none-win_amd64.whl
Size 98.4 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
e8e14b46409003963e1161378f3d2309859effef2b159e94b48f91ddbf67826e
BLAKE2b-256 checksum
How to use checksums
9a2bd1cdd0955ef07ab82758186ccee79b89a17510d0aa7b7877ef11fcd603a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Security for trec-eval 10.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

10.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page