Skip to main content

A Unified View of Evaluation Metrics for Structured Prediction

Project description

metametric

The metametric Python package offers a set of tools for quickly and easily defining and implementing evaluation metrics for a variety of structured prediction tasks in natural language processing (NLP) based on the framework presented in the following paper:

A Unified View of Evaluation Metrics for Structured Prediction. Yunmo Chen, William Gantt, Tongfei Chen, Aaron Steven White, and Benjamin Van Durme. EMNLP 2023.

The key features of the package include:

  • A decorator for automatically defining and implementing a custom metric for an arbitrary dataclass.
  • A collection of generic components for defining arbitrary new metrics based on the framework in the paper.
  • Implementations of a number of metrics for common structured prediction tasks.

To install, run:

pip install metametric

If you use this codebase in your work, please cite the following paper:

@inproceedings{metametric,
    title={A Unified View of Evaluation Metrics for Structured Prediction},
    author={Yunmo Chen and William Gantt and Tongfei Chen and Aaron Steven White and Benjamin {Van Durme}},
    booktitle={Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing},
    year={2023},
    address={Singapore},
}

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

metametric-0.2.0rc0.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

metametric-0.2.0rc0-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

Details for the file metametric-0.2.0rc0.tar.gz.

File metadata

  • Download URL: metametric-0.2.0rc0.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.4.27

File hashes

Hashes for metametric-0.2.0rc0.tar.gz
Algorithm Hash digest
SHA256 dd3f71967251656592d842da9ce50b39f55f87d4234b4d2504f1491fbf157a72
MD5 e6b3a84e23212e59b5f3cb92c336acb0
BLAKE2b-256 30cfe7dc71647bda353258bb4a967d220501f328f17ebf55168a8a31583f1084

See more details on using hashes here.

File details

Details for the file metametric-0.2.0rc0-py3-none-any.whl.

File metadata

File hashes

Hashes for metametric-0.2.0rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 56c9eb00012bf46e61c9994357e6e56d726115dd27d7577fd2e5de1b35ad8200
MD5 ea76008ce9d65b60d49633bc88409e23
BLAKE2b-256 03ea4be3ff97b2c450d989b009042234d2d8bd6fbd644a3c2e10771a09a13e30

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page