Skip to main content

meddeid-eval

Reproducible evaluation for clinical de-identification. meddeid-eval computes exact-span metrics, character-level recall, core-PII recall, non-PII redaction rate, and stability results from canonical MedDeID JSONL files.

See the suite evaluation workflow for the end-to-end handoff. This repository remains authoritative for metric definitions, commands, stability configuration, and plotting support.

Installation

python -m pip install meddeid-eval

Optional extras add model inference and plotting support:

python -m pip install 'meddeid-eval[infer,plots]'

Usage

meddeid-eval score --gold meddeid-dutch-synthetic-benchmark.jsonl --predictions predictions.jsonl
meddeid-eval stability expand --config stability.yaml

Gold and prediction files are matched by document_id and use half-open [begin, end) Unicode-code-point offsets. The score command reports exact precision, recall, and F1 together with character coverage and redaction metrics.

Core-PII recall is the label-agnostic fraction of protocol-defined core PII characters covered by any predicted redaction. Each primary gold span owns a nested subannotations list. formatting, additional_info, medical_info, title, and time segments are excluded from the denominator.

Stability perturbations use the complete nl-BE resources from meddeid-language-nl; incomplete resources are reported as installation errors.

External comparators

Comparison systems run in their own environments. Export their predictions in the canonical MedDeID JSONL schema and evaluate them with the same score command. Belgian DEDUCE is not installed by meddeid-eval.

Development

pip install -e '.[dev]'
pytest

Licence

AGPL-3.0-only. External comparison systems retain their own licence terms.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

meddeid_eval-0.2.1.tar.gz (45.4 kB view details)

Uploaded Source

Built Distribution

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

meddeid_eval-0.2.1-py3-none-any.whl (51.2 kB view details)

Uploaded Python 3

File details

Details for the file meddeid_eval-0.2.1.tar.gz.

File metadata

  • Download URL: meddeid_eval-0.2.1.tar.gz
  • Upload date:
  • Size: 45.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for meddeid_eval-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c80c0de8cdc7f153cbf700f046a95a19b2c487b9d1e8da6ca976d20cad7a2d79
MD5 b5122df725581a2005b64bb74ef02425
BLAKE2b-256 388c2f2062684571726a04303e63e18662bad12f57aa6d9f5831220202e0e339

See more details on using hashes here.

Provenance

The following attestation bundles were made for meddeid_eval-0.2.1.tar.gz:

Publisher: publish-python.yml on stighellemans/meddeid-eval

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file meddeid_eval-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: meddeid_eval-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 51.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for meddeid_eval-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a4faba3fd2cb05b39f8113be85380ffe12ab28d0cd602d3ab6fa4a4704f3e96
MD5 e7b58be2428271bdcf618032d28277aa
BLAKE2b-256 a2d43eac6111c4b592cbe08b78054e1b0c93da93bf96901baa0cd96db87d4e99

See more details on using hashes here.

Provenance

The following attestation bundles were made for meddeid_eval-0.2.1-py3-none-any.whl:

Publisher: publish-python.yml on stighellemans/meddeid-eval

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.3.0

2 files

This release

0.2.1 This release

2 files

0.2.0

2 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