Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_bleu_fast and get_bleu producing different result #8

Closed
AranKomat opened this issue Apr 27, 2018 · 1 comment
Closed

get_bleu_fast and get_bleu producing different result #8

AranKomat opened this issue Apr 27, 2018 · 1 comment

Comments

@AranKomat
Copy link

reference = reference[0:self.sample_size]

When you calculate BLEU, the size of the reference list should match exactly, since a reference list with greater number of sentences produces higher BLEU, which was mentioned in the paper that introduced BLEU score. The aforementioned line curtails the original reference list consisting of 10k sentences to 500 sentences, which results in lower BLEU score. The same thing can be said for self-BLEU. Did you calculate COCO (self)-BLEU with get_bleu_fast?

@Yaoming95
Copy link
Collaborator

We use "get_bleu" for computing both BLEU score and S-BLEU score. "get_bleu_fast" is not used in the final results and paper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants