A simple lightweight library for computing BLEU scores
Project description
bleuper
A simple lightweight library to help you easily compute BLEU scores.
Usage
from bleuper import BLEU
ref1 = ['love', 'can', 'always', 'find', 'a', 'way']
ref2 = ['love', 'makes', 'anything', 'possible']
tran1 = ['the', 'love', 'can', 'always', 'do']
tran2 = ['love', 'can', 'make', 'anything', 'possible']
b = BLEU([ref1, ref2], (0.4, 0.35, 0.25, 0, ))
score1 = b.compute_score(tran1)
score2 = b.compute_score(tran2)
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
bleuper-0.2.tar.gz
(5.5 kB
view details)
File details
Details for the file bleuper-0.2.tar.gz
.
File metadata
- Download URL: bleuper-0.2.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18ef9e1954956d95c0c8e2097c050a0c02cd85b3a3ea06b4e5b95652a84b04fd |
|
MD5 | ea35971de700159e643c6fd4d9ba5cfb |
|
BLAKE2b-256 | b6ad8e11f63d97789400dd441c86fe37492d1e3c575d369289b362a05228563e |