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.1.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.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

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

Hashes for docling_metrics_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a7b58e5c13a45f2972764c45023cf522c1c2c4e8f777e8c92942a6268ec5b2b3
MD5 d59f7db5866b7f679f2ab121f75b8ab5
BLAKE2b-256 91c04830de20bb90eedc8f41dfb650c345601022bebafe0192e157b17d2936f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for docling_metrics_core-0.1.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.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for docling_metrics_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 836a1a3b0dad92334706468ec555bf2f4d0f490df3317839706bd2e312e9bbc4
MD5 1b3a3cb9b0552ebe9bfbff634570cba9
BLAKE2b-256 ffb3f62af97cad5595ddb0f59439fae180226bb25a6c9a3735c0da5b9e080065

See more details on using hashes here.

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

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