Skip to main content

Evaluation toolkit for neural language generation.

Project description

Jury

Simple tool/toolkit for evaluating NLG (Natural Language Generation) offering various automated metrics. Jury offers a smooth and easy-to-use interface. It uses huggingface/datasets package for underlying metric computation, and hence adding custom metric is easy as adopting datasets.Metric.

Installation

Through pip,

pip install jury

or build from source,

git clone https://github.com/obss/jury.git
cd jury
python setup.py install

Usage

API Usage

It is only two lines of code to evaluate generated outputs.

from jury import Jury

jury = Jury()
# Microsoft translator translition for "Yurtta sulh, cihanda sulh." (16.07.2021)
predictions = ["Peace in the dormitory, peace in the world."]
references = ["Peace at home, peace in the world."]
scores = jury.evaluate(predictions, references)

Specify metrics you want to use on instantiation.

jury = Jury(metrics=["bleu", "meteor"])
scores = jury.evaluate(predictions, references)

CLI Usage

Coming soon...

License

Licensed under the MIT License.

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

jury-0.0.5.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

jury-0.0.5-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file jury-0.0.5.tar.gz.

File metadata

  • Download URL: jury-0.0.5.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for jury-0.0.5.tar.gz
Algorithm Hash digest
SHA256 51fe195e4b44229ce130dfe7dd6d8d3dac2979adf7092b5d47ce0cb2feab83bb
MD5 4d6598ca4d45ecf5295521ffe54fa602
BLAKE2b-256 f7832f227ba2290f7663383080c6884140ccd688430031d4a6ffc5493f173a4c

See more details on using hashes here.

File details

Details for the file jury-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: jury-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for jury-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ae0d0685605380b82b9a302b3510bd2736ccf2e72211461ddfc0af52aa0cc5c0
MD5 66417e40ea5440e73ada08641def8d79
BLAKE2b-256 6df4d95e06a0e36734eea1511847753b5fc9cfde6e5eb2750b238dc94dfc3f3b

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