Texygen icon indicating copy to clipboard operation
Texygen copied to clipboard

BLEU Score Computation

Open sleighsoft opened this issue 6 years ago • 7 comments

I have two questions:

  1. How do you compute the reported BLEU scores? I see the imports of BLEU in several models but BLEU is never added to the self.metrics collection of any of them.

  2. When computing BLEU, which sentences are considered to be references?

sleighsoft avatar Oct 19 '18 09:10 sleighsoft

@Yaoming95 I would really love to replicate your results.

sleighsoft avatar Oct 25 '18 13:10 sleighsoft

@Yaoming95 I would really love to replicate your results.

Have you solved the problem? :)

wyxcc avatar Apr 16 '19 11:04 wyxcc

No. To be honest, I stopped pursuing BLEU as a solid score.

sleighsoft avatar Apr 18 '19 10:04 sleighsoft

Hello, How did you add BLEU metric to your metrics?

khorshidisamira avatar Mar 02 '20 15:03 khorshidisamira

Same question here. @Yaoming95

shizhediao avatar Jul 24 '20 08:07 shizhediao

@Yaoming95 I would really love to replicate your results.

Have you solved the problem? :)

Hello, I encountered the same problem as you, please tell me how you solved it?Thanks

xuefeng199507 avatar Dec 20 '20 09:12 xuefeng199507

from utils.metrics.Bleu import Bleu

if name == 'main': bleu_metric = Bleu(test_text=r'/docs/instances/seq.txt', real_text=r'data/image_coco.txt', gram=2) score = bleu_metric.get_score(is_fast=False, ignore=False) print(f"BLEU Score: {score}")

tangshu-yu avatar Jul 20 '24 18:07 tangshu-yu