Skip to main content

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 unique id shared between sample pairs
  • BaseSampleResult — Output of evaluating a single sample pair
  • BaseAggregateResult — Output of aggregating multiple sample results
  • BaseMetric — Abstract interface defining evaluate_sample, aggregate, and evaluate_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


Download files

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

Source Distribution

docling_metrics_core-0.14.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

docling_metrics_core-0.14.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file docling_metrics_core-0.14.0.tar.gz.

File metadata

  • Download URL: docling_metrics_core-0.14.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.12

File hashes

Hashes for docling_metrics_core-0.14.0.tar.gz
Algorithm Hash digest
SHA256 b795b4784fddb7edee663d310f6349a8afaee6fa0c63d2286b9c2a5e06647ff5
MD5 3da5e497f0f3e7290a690fc974dd1729
BLAKE2b-256 661f529066f5b98fae920877a5b029417d773b806f8cc8b1b52197199fb304e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for docling_metrics_core-0.14.0.tar.gz:

Publisher: pypi.yml on docling-project/docling-metrics

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

File details

Details for the file docling_metrics_core-0.14.0-py3-none-any.whl.

File metadata

File hashes

Hashes for docling_metrics_core-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c2152612a65efd98f6f8c933d913703adad229c48142b55396c5dcae095634c1
MD5 6c3f77e4e34142b23fe9d05b4e46de3b
BLAKE2b-256 17e6090a869797110b087402438619559f8fab6b913270eb1e0929aac7976f5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for docling_metrics_core-0.14.0-py3-none-any.whl:

Publisher: pypi.yml on docling-project/docling-metrics

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

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