Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

implemented perplexity reductions for lm score reporting (old) #779

Closed

Conversation

shreydesai
Copy link
Contributor

Summary: Implements perplexity reductions for language model score reporting. Currently, the reported score is the average perplexity of all words in a sentence, but this may not work for all use cases (e.g., the presence of named entities in a sentence brings up the average perplexity, so the resulting metric may not be as useful). To this end, this diff introduces several ways to "reduce" the perplexity scores of a sentence: min, max, mean, median, and eos (i.e., the perplexity of the __END_OF_SENTENCE__ token).

Differential Revision: D16244881

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jul 13, 2019
…earch#779)

Summary:
Pull Request resolved: facebookresearch#779

Implements perplexity reductions for language model score reporting. Currently, the reported score is the average perplexity of all words in a sentence, but this may not work for all use cases (e.g., the presence of named entities in a sentence brings up the average perplexity, so the resulting metric may not be as useful). To this end, this diff introduces several ways to "reduce" the perplexity scores of a sentence: min, max, mean, median, and eos (i.e., the perplexity of the `__END_OF_SENTENCE__` token).

Differential Revision: D16244881

fbshipit-source-id: cd9126850a616a53c7f4cb241313764790b1222a
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 4124119.

@shreydesai shreydesai deleted the export-D16244881 branch July 19, 2019 18:49
@shreydesai shreydesai changed the title implemented perplexity reductions for lm score reporting implemented perplexity reductions for lm score reporting (old) Jul 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants