language form evaluation in python
Project description
Language Form Evaluation
This package includes efficient pure python implementation of the following metrics:
-
- current implementation is a wrapper of nltk.translate.bleu_score
- known issue:
- drop in performance when evaluating multi-candidates vs multi-references
- known issue:
- current implementation is a wrapper of nltk.translate.bleu_score
-
ROUGE (in progress)
-
METEOR (in progress)
-
- original 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
- original implementation: https://github.com/vrama91/cider
-
SPICE (in progress)
*All stats shown above are estimations
Dependencies
- python 3.6 +
- nltk 3.5+
Setup
pip install formeval
optional setup
python3 -c 'import nltk; nltk.download("wordnet")'
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.4.tar.gz
(5.9 kB
view details)
Built Distribution
File details
Details for the file formeval-1.0.4.tar.gz
.
File metadata
- Download URL: formeval-1.0.4.tar.gz
- Upload date:
- Size: 5.9 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 | c1dd5a16b849d22b95b352c5b5005a0d370412c89bb60a22a666c37a95d5945e |
|
MD5 | 9000a6571f2c2419e1cc69d7834dfaeb |
|
BLAKE2b-256 | bc811b597356df175ce778ee60d9e1eac9cc700d5c99a9a4abbe45b36d87ec5d |
File details
Details for the file formeval-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: formeval-1.0.4-py3-none-any.whl
- Upload date:
- Size: 7.4 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 | 551ae9ad76b5568bd4585bc31ba7daa4abad84572fc351162c3e8f3d972624d5 |
|
MD5 | c4f65314d84c47e88b02759824a813d8 |
|
BLAKE2b-256 | 7b0b4199be740713debca4601c01d1be8546580cf939372dae44a5f13cfe6668 |