Metric types and evaluation utilities for Docling document processing
Project description
docling-metrics-core
A minimal interface for computing and aggregating metrics on paired data samples.
Overview
This package provides base types for building metrics that:
- Evaluate pairs of input samples (e.g., ground-truth vs. prediction)
- Produce per-sample results traceable by sample ID
- Aggregate results across multiple samples
Core Types
BaseInputSample— Input data with a uniqueidshared between sample pairsBaseSampleResult— Output of evaluating a single sample pairBaseAggregateResult— Output of aggregating multiple sample resultsBaseMetric— Abstract interface definingevaluate_sample,aggregate, andevaluate_dataset
Installation
pip install docling-metrics-core
Requirements
- Python >=3.10,<4.0
Usage
Coming soon
Development
# Install in development mode
uv sync
# Run tests
uv run pytest
License
MIT
Project details
Release history Release notifications | RSS feed
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 docling_metrics_core-0.1.0.tar.gz.
File metadata
- Download URL: docling_metrics_core-0.1.0.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7b58e5c13a45f2972764c45023cf522c1c2c4e8f777e8c92942a6268ec5b2b3
|
|
| MD5 |
d59f7db5866b7f679f2ab121f75b8ab5
|
|
| BLAKE2b-256 |
91c04830de20bb90eedc8f41dfb650c345601022bebafe0192e157b17d2936f1
|
Provenance
The following attestation bundles were made for docling_metrics_core-0.1.0.tar.gz:
Publisher:
pypi.yml on docling-project/docling-metrics
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
docling_metrics_core-0.1.0.tar.gz -
Subject digest:
a7b58e5c13a45f2972764c45023cf522c1c2c4e8f777e8c92942a6268ec5b2b3 - Sigstore transparency entry: 919104911
- Sigstore integration time:
-
Permalink:
docling-project/docling-metrics@6d108c5dbf14478e6b1377141d314e058c8bc794 -
Branch / Tag:
refs/tags/docling-metrics-core-v0.1.0 - Owner: https://github.com/docling-project
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@6d108c5dbf14478e6b1377141d314e058c8bc794 -
Trigger Event:
release
-
Statement type:
File details
Details for the file docling_metrics_core-0.1.0-py3-none-any.whl.
File metadata
- Download URL: docling_metrics_core-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
836a1a3b0dad92334706468ec555bf2f4d0f490df3317839706bd2e312e9bbc4
|
|
| MD5 |
1b3a3cb9b0552ebe9bfbff634570cba9
|
|
| BLAKE2b-256 |
ffb3f62af97cad5595ddb0f59439fae180226bb25a6c9a3735c0da5b9e080065
|
Provenance
The following attestation bundles were made for docling_metrics_core-0.1.0-py3-none-any.whl:
Publisher:
pypi.yml on docling-project/docling-metrics
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
docling_metrics_core-0.1.0-py3-none-any.whl -
Subject digest:
836a1a3b0dad92334706468ec555bf2f4d0f490df3317839706bd2e312e9bbc4 - Sigstore transparency entry: 919104913
- Sigstore integration time:
-
Permalink:
docling-project/docling-metrics@6d108c5dbf14478e6b1377141d314e058c8bc794 -
Branch / Tag:
refs/tags/docling-metrics-core-v0.1.0 - Owner: https://github.com/docling-project
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@6d108c5dbf14478e6b1377141d314e058c8bc794 -
Trigger Event:
release
-
Statement type: