Skip to main content

interrater-lm

About

A Python package for evaluating language model-style structured outputs with agreement coefficients and statistical procedures for deriving uncertainty and significance.

The aim of this package is not primarily to provide novel implementations of agreement coefficients but instead to make computing these simpler for comparing language models. To that end, we make use of existing libraries for some definitions, and define our own only when well-maintained implementations do not exist or significant additional preprocessing is needed to use with language model-style structured outputs.

Documentation

The documentation is at https://leesadie.github.io/interrater-lm.

Features

  • Agreement coefficients
  • Data levels of measurement
    • Nominal
    • Ordinal
    • Ratio
    • Interval
  • Weighting - for Cohen's kappa and Gwet's AC2
    • Identity
    • Linear
    • Quadratic
  • Statistical procedures
    • Bias-corrected and accelerated (BCa) cluster bootstrapped confidence intervals - as defined by scipy
    • Permutation tests with optional Monte Carlo sampling for one-sided and two-sided hypotheses
  • Standardized data container
  • Automatic preprocessing and validation based on data level

Installation

GitHub

PyPi

To obtain the latest release of interrater-lm using pip:

python -m pip install interrater_lm

Contributing

Contributions in any form are welcome, including:

  • Documentation improvements
  • Additional tests
  • New features to existing coefficients, e.g., other weights
  • New coefficients
  • New statistical methods

See Contributing for guidelines.

License

MIT License

Release files for interrater-lm 0.1.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 interrater-lm 0.1.0
File Size Uploaded
interrater_lm-0.1.0.tar.gz 115.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for interrater-lm 0.1.0
File Interpreter ABI Platform
interrater_lm-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 158.2 kB

Release files / interrater_lm-0.1.0.tar.gz

Download URL interrater_lm-0.1.0.tar.gz
Size 115.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d5f23d1d14de91cbdc75e5deee63192d4c7cf6b1fb6f58161c518216a3044460
BLAKE2b-256 checksum
How to use checksums
3dd3b8228c358a5876c6c763d26f550337665fbc81e4f2d35244e1a501dab50d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 24, 2026.

Transparency log

Release files / interrater_lm-0.1.0-py3-none-any.whl

Download URL interrater_lm-0.1.0-py3-none-any.whl
Size 42.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3165dccaf52c0d83fd14eeffb52727bf507d8ec2699699a5b300192876501ed9
BLAKE2b-256 checksum
How to use checksums
48052c5e217a4d6cc62acc6005a5ed16fd486f5eb0a6e96b6f0209daf6d478fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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