language form evaluation in python
Project description
Language Form Evaluation
This package includes efficient (almost) pure python implementation of the following metrics:
- BLEU
- reference implementation: nltk.translate.bleu_score
- error: < 1%
- speed: + 189%
- reference implementation: nltk.translate.bleu_score
- ROUGE (in progress)
- METEOR (in progress)
- CIDEr/CIDEr-D
- reference implementation: https://github.com/vrama91/cider
- with the same tokenizer
- error: < 1 %
- speed: + 81 %
- with different tokenizers (FormEval use Regexp by default)
- error: ~ 15 %
- speed: + 332 %
- with the same tokenizer
- reference implementation: https://github.com/vrama91/cider
- SPICE
- placeholder wrapper of reference implementation: https://github.com/tylin/coco-caption/tree/master/pycocoevalcap/spice
- TODO: python scene graph parser
- placeholder wrapper of reference implementation: https://github.com/tylin/coco-caption/tree/master/pycocoevalcap/spice
*All stats shown above are estimations
Dependencies
- python 3.6 +
- nltk 3.5+
Setup
pip install formeval
optional setups:
-
spice dependencies
-
wordnet lemmatizer
python3 -c 'from formeval.setup import setup_everything; setup_everything()'
Example Data
Usage
See run_examples.py
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
formeval-1.0.5.tar.gz
(12.0 kB
view details)
Built Distribution
formeval-1.0.5-py3-none-any.whl
(15.5 kB
view details)
File details
Details for the file formeval-1.0.5.tar.gz
.
File metadata
- Download URL: formeval-1.0.5.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 647416bcd811036aa0f0b52578ee7ea591f5183b3b15a5e8188a971fea8577a4 |
|
MD5 | d01581dbaf269f89c5f13139192d9942 |
|
BLAKE2b-256 | b298a0d7cd5cd1b61977566b7d5b52cfb8bd800f864c08779928517a3593a854 |
File details
Details for the file formeval-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: formeval-1.0.5-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e50849c19b7fd9a9a292712fbbc834ee8c30f8b498df159fd300b02847fa5bb |
|
MD5 | 5387a5e1d3bfe99d9f695136604b86b8 |
|
BLAKE2b-256 | ba13dac779e03ca680f00d618c92b713f3c6bd4bf3bd2cdf01597d6d30312062 |