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.3.0a0.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

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

metametric-0.3.0a0-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

Details for the file metametric-0.3.0a0.tar.gz.

File metadata

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

File hashes

Hashes for metametric-0.3.0a0.tar.gz
Algorithm Hash digest
SHA256 016392e0ce921bb8e17219b19dcbf669459eb9255cc2a39d584e50b521076e21
MD5 c44e71e56c6208b2cc4cec12456d2d5a
BLAKE2b-256 ae467b765ae2a9da010582c7429f14c95be2f60eac9580eded10f5dbfef8948f

See more details on using hashes here.

File details

Details for the file metametric-0.3.0a0-py3-none-any.whl.

File metadata

File hashes

Hashes for metametric-0.3.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 c2346ef3ac96c78c8a188add27c1c3bbbefec0f5480a9fbe56c4c3b4fdb9f5fc
MD5 1a4294145c18157a70c10cd74bf9c5e7
BLAKE2b-256 5f8b5d9a837efceb74a682e10160617480b8e185d46c37f6eebaa28890bd1515

See more details on using hashes here.

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