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

Fix examples in perplexity measurement docs #238

Merged
merged 3 commits into from
Aug 10, 2022

Conversation

mathemakitten
Copy link
Contributor

The examples for the perplexity measurement card here are wrong since the perplexity measurement module does not take input_texts. It should be run by passing input text via the data argument instead.

Reproduce original error with:

perplexity = evaluate.load("perplexity", module_type= "measurement")
input_texts = ["lorem ipsum", "Happy Birthday!", "Bienvenue"]
results = perplexity.compute(model_id='gpt2',
                             add_start_token=False,
                             input_texts=input_texts)
print(list(results.keys()))

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Aug 9, 2022

The documentation is not available anymore as the PR was closed or merged.

@mathemakitten mathemakitten added the documentation Improvements or additions to documentation label Aug 9, 2022
@mathemakitten mathemakitten changed the base branch from main to hn-base-e August 10, 2022 22:24
@mathemakitten mathemakitten merged commit 39d1bd1 into hn-base-e Aug 10, 2022
@mathemakitten mathemakitten deleted the hn-fix-perplexity-docs branch August 10, 2022 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants