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 checking for nltk.punkt if a machine not online #1456

Merged
merged 15 commits into from
Jan 28, 2023

Conversation

stancld
Copy link
Contributor

@stancld stancld commented Jan 23, 2023

What does this PR do?

Fixes #1455

Before submitting

  • Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

@stancld stancld changed the title Fix checking for nltk.punkt to avoid freezing if machine is not conne… Fix checking for nltk.punkt if a machine not online Jan 23, 2023
@codecov
Copy link

codecov bot commented Jan 23, 2023

Codecov Report

Merging #1456 (a3f5a59) into master (3f93c72) will decrease coverage by 44%.
The diff coverage is 82%.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #1456     +/-   ##
========================================
- Coverage      90%     45%    -44%     
========================================
  Files         213     213             
  Lines       10986   11002     +16     
========================================
- Hits         9840    4964   -4876     
- Misses       1146    6038   +4892     

@mergify mergify bot removed the has conflicts label Jan 24, 2023
src/torchmetrics/functional/text/rouge.py Outdated Show resolved Hide resolved
@Borda Borda enabled auto-merge (squash) January 24, 2023 17:52
@mergify mergify bot removed the ready label Jan 26, 2023
@mergify mergify bot added the ready label Jan 27, 2023
@Borda Borda merged commit 5d4ffe0 into master Jan 28, 2023
@Borda Borda deleted the fix/rouge-nltk-offline branch January 28, 2023 16:03
Borda pushed a commit that referenced this pull request Jan 30, 2023
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: SkafteNicki <[email protected]>
Co-authored-by: Jirka Borovec <[email protected]>
(cherry picked from commit 5d4ffe0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Metrics that call NLTK.download cause lightning to hang in offline environments
3 participants