Advertisement
alvations

50 Shades of BLEU

Jan 3rd, 2016
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.53 KB | None | 0 0
  1. alvas@ubi:~/git/mosesdecoder/scripts/training/propy$ cat hyp.txt
  2. It is a guide to action which ensures that the military always obeys the commands of the party
  3. he read the book because he was interested in world history
  4. alvas@ubi:~/git/mosesdecoder/scripts/training/propy$ cat ref1.txt
  5. It is a guide to action that ensures that the military will forever heed Party commands
  6. he was interested in world history because he read the book
  7. alvas@ubi:~/git/mosesdecoder/scripts/training/propy$ python3 pybleu.py -r ref1.txt -t hyp.txt -w '0.25 0.25 0.25 0.25' --smooth 0 --segment-level
  8. 0.41180376356915777
  9. 0.7400828044922853
  10. BLEU = 48.02, 316/5/63/91/2/147/5 (BP=1.0, ratio=1.074, hyp_len=29, ref_len=27)
  11. alvas@ubi:~/git/mosesdecoder/scripts/training/propy$ python3 pybleu.py -r ref1.txt -t hyp.txt -w '0.25 0.25 0.25 0.25' --smooth 1 --segment-level
  12. 0.41180376356915777
  13. 0.7400828044922853
  14. BLEU = 48.02, 316/5/63/91/2/147/5 (BP=1.0, ratio=1.074, hyp_len=29, ref_len=27)
  15. alvas@ubi:~/git/mosesdecoder/scripts/training/propy$ python3 pybleu.py -r ref1.txt -t hyp.txt -w '0.25 0.25 0.25 0.25' --smooth 2 --segment-level
  16. 0.45763189808605753
  17. 0.8210967436686386
  18. BLEU = 48.02, 316/5/63/91/2/147/5 (BP=1.0, ratio=1.074, hyp_len=29, ref_len=27)
  19. alvas@ubi:~/git/mosesdecoder/scripts/training/propy$ python3 pybleu.py -r ref1.txt -t hyp.txt -w '0.25 0.25 0.25 0.25' --smooth 3 --segment-level
  20. 0.41180376356915777
  21. 0.7400828044922853
  22. BLEU = 48.02, 316/5/63/91/2/147/5 (BP=1.0, ratio=1.074, hyp_len=29, ref_len=27)
  23. alvas@ubi:~/git/mosesdecoder/scripts/training/propy$ python3 pybleu.py -r ref1.txt -t hyp.txt -w '0.25 0.25 0.25 0.25' --smooth 4 --segment-level
  24. 0.41180376356915777
  25. 0.7400828044922853
  26. BLEU = 48.02, 316/5/63/91/2/147/5 (BP=1.0, ratio=1.074, hyp_len=29, ref_len=27)
  27. alvas@ubi:~/git/mosesdecoder/scripts/training/propy$ python3 pybleu.py -r ref1.txt -t hyp.txt -w '0.25 0.25 0.25 0.25' --smooth 5 --segment-level
  28. 0.4905328138015114
  29. 0.8132249827094292
  30. BLEU = 48.02, 316/5/63/91/2/147/5 (BP=1.0, ratio=1.074, hyp_len=29, ref_len=27)
  31. alvas@ubi:~/git/mosesdecoder/scripts/training/propy$ python3 pybleu.py -r ref1.txt -t hyp.txt -w '0.25 0.25 0.25 0.25' --smooth 6 --segment-level
  32. 0.18015078767591494
  33. 0.3961311151812937
  34. BLEU = 48.02, 316/5/63/91/2/147/5 (BP=1.0, ratio=1.074, hyp_len=29, ref_len=27)
  35. alvas@ubi:~/git/mosesdecoder/scripts/training/propy$ python3 pybleu.py -r ref1.txt -t hyp.txt -w '0.25 0.25 0.25 0.25' --smooth 7 --segment-level
  36. 0.4905328138015114
  37. 0.8132249827094292
  38. BLEU = 48.02, 316/5/63/91/2/147/5 (BP=1.0, ratio=1.074, hyp_len=29, ref_len=27)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement