Skip to content

BLEU score calculator for evaluating the accuracy of machine translation of different languages.

Notifications You must be signed in to change notification settings

pachpandenikhil/BLEU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BLEU Calculator

BLEU score calculator for evaluating the accuracy of machine translation of different languages.

  • Implemented a BLEU score calculator for evaluating the accuracy of machine translation of different languages, as defined in the paper.
  • Calculated BLEU score fully matches the true BLEU score.

Core Technology: Python.

Data

Many reference translations can be found from EUROPARL corpus.

The candidate translations can be obtained by taking the corresponding English sentences from the reference translations and running them through Google Translate.

Program

calculatebleu.py takes two paramaters:

  1. path to the candidate translation (a single file).

  2. path to the reference translations (either a single file, or a directory if there are multiple reference translations).

> python calculatebleu.py /path/to/candidate /path/to/reference

Output

BLEU score of the candidate translation relative to the set of reference translations is written to an output file called bleu_out.txt.

About

BLEU score calculator for evaluating the accuracy of machine translation of different languages.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages