Python Forum
Calculating BLEU scores in Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calculating BLEU scores in Python
#2
If I understand well how the program works, you don't need any programming experience to use it as a black box:
  1. Create a file machine-translated.txt containing the machine translation of some text.
  2. Create a directory containing one or more human translations of the same text, say human-translated-1.txt, human-translated-2.txt etc.
  3. Run the command python calculatebleu.py machine-translated.txt path-to-directory
  4. Then read the contents of the new file bleu_output.txt
kg17 likes this post
Reply


Messages In This Thread
Calculating BLEU scores in Python - by kg17 - Jan-12-2021, 07:57 PM
RE: Calculating BLEU scores in Python - by Gribouillis - Jan-12-2021, 08:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Reading Baseball Box Scores tommythumb 3 584 May-21-2024, 09:13 AM
Last Post: Pedroski55
  Python Coding Help: Calculating Sums bperez 9 3,772 Jan-18-2021, 07:25 AM
Last Post: perfringo
  Calculating of difficult integrals in python enitorc 0 5,630 Apr-15-2018, 01:24 PM
Last Post: enitorc

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020