Skip to content

shvms/bleuper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bleuper

A simple lightweight library to help you easily compute BLEU scores.

Install

pip install bleuper

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)

About

A simple lightweight library to easily compute BLEU scores for comparing MT systems.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages