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

Flag to output the score of each sentence at inference + various scoring tools #2196

Merged
merged 5 commits into from
Sep 9, 2022

Conversation

vince62s
Copy link
Member

@vince62s vince62s commented Sep 8, 2022

The goal is to be able to rerank nbest hypothesis when combining the score of each translation with another score.
In the context of Noisy Channel Reranking we combine:
the score of each translation
the backward score with an inverse model
a language model score of each translation

New tools:
mbr_bleu: compute the best bleu amongst n_best hypotheses between themselves.
oracle_bleu: compute the best possible BLEU against a reference and pick the best in n_best
oracle_comet: same with unbable/comet

Copy link
Member

@francoishernandez francoishernandez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did not review tools. Probably not critical.
Would be nice to document those a little bit though. Either in the README in the tools folder, or in the header of each script.

onmt/translate/translator.py Outdated Show resolved Hide resolved
onmt/translate/translator.py Outdated Show resolved Hide resolved
@francoishernandez
Copy link
Member

Thanks, merging!

@francoishernandez francoishernandez merged commit 948a150 into OpenNMT:master Sep 9, 2022
@vince62s vince62s deleted the scoringtools branch September 9, 2022 12:50
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

Successfully merging this pull request may close these issues.

2 participants