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
Release history Release notifications | RSS feed
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.4.tar.gz
(8.3 kB
view details)
Built Distribution
jury-0.0.4-py3-none-any.whl
(9.1 kB
view details)
File details
Details for the file jury-0.0.4.tar.gz
.
File metadata
- Download URL: jury-0.0.4.tar.gz
- Upload date:
- Size: 8.3 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96fbf651e31abb313d39b036ecd34f4595829af4e4473e24a8c864b3572b4498 |
|
MD5 | 3bd563955ff0a2986dd092589bb1dfcc |
|
BLAKE2b-256 | aaaf1fb3b97d777f7d1ec30011c29b09ceb372a7a82f2d475da11fce04fdddf9 |
File details
Details for the file jury-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: jury-0.0.4-py3-none-any.whl
- Upload date:
- Size: 9.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f712442c4347f9717fa41a0791ac2cdadde5687d0da377bcfa864f1056caa3af |
|
MD5 | 665461db2fccfbe00dd9c746f3f7d10e |
|
BLAKE2b-256 | 15ead895e29013dac1dac9136dd63d6478c3957376b025bd031408f8072c0345 |