language form evaluation in python
Project description
Language Form Evaluation
This package includes efficient pure python implementation of the following metrics:
-
BLEU (in progress)
-
ROUGE (in progress)
-
- compared to original implementation: https://github.com/vrama91/cider
- With the same tokenizer
- error: < 1 %
- speed: + 181 %
- With different tokenizer (formeval cider use Regex from nltk)
- error: ~15 %
- speed: + 432 %
- With the same tokenizer
- compared to original implementation: https://github.com/vrama91/cider
-
SPICE (in progress)
All stats represented above are rough estimation
Dependencies
- python 3.6 +
- nltk 3.5+
Setup
pip install formeval
optional setup
python3 -c 'import nltk; nltk.download("wordnet")'
Example Data
Comparison
CIDEr/CIDEr-D (https://github.com/vrama91/cider):
- difference < 1%
- efficiency
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.2.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file formeval-1.0.2.tar.gz
.
File metadata
- Download URL: formeval-1.0.2.tar.gz
- Upload date:
- Size: 4.6 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 | 1f754bfb7f19a7f1a5c51c58b06d0f35b2d95928ce51973e5fc0723131c92973 |
|
MD5 | ea3a62457a094024c50f6ebd121486a7 |
|
BLAKE2b-256 | d1c0aaeaa9eb03a8d31df7f2f0a7fa0689da000e72e59cf5a9576b883c4c012a |
File details
Details for the file formeval-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: formeval-1.0.2-py3-none-any.whl
- Upload date:
- Size: 5.3 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 | d2b03e896de421b73b79377284ef80ece966d379a433bf89f720becd5b123a13 |
|
MD5 | e04fe8b260c160c853302d749a0c2a84 |
|
BLAKE2b-256 | 8b900dc04db0cc9b3b52b6d899e040cf79550a2f1d6a23c063046d33cc534463 |