Jan-12-2021, 08:26 PM
If I understand well how the program works, you don't need any programming experience to use it as a black box:
- Create a file machine-translated.txt containing the machine translation of some text.
- Create a directory containing one or more human translations of the same text, say human-translated-1.txt, human-translated-2.txt etc.
- Run the command
python calculatebleu.py machine-translated.txt path-to-directory
- Then read the contents of the new file bleu_output.txt