8000 GitHub - shvms/bleuper: A simple lightweight library to easily compute BLEU scores for comparing MT systems. · GitHub
[go: up one dir, main page]

Skip to content
shvmsPublic

About

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

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

27 Commits

Folders and files

Repository files navigation

bleuper

Tests

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

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0