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

bugfix: Evaluate pred_lsum only if lsum in rouge_keys #1258

Merged
merged 6 commits into from
Oct 10, 2022
Merged

Conversation

stancld
Copy link
Contributor

@stancld stancld commented Oct 8, 2022

Fixes #1257

Evaluate pred_lsum only if lsum in rouge_keys to avoid downloading "punkt" package from nltk, which raises an error when using e.g. DDP.

What does this PR do?

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 🙃

Fixes #1257

Evaluate pred_lsum only if lsum in rouge_keys to avoid downloading
"punkt" package from `nltk`, which raises an error when using e.g. DDP.
@stancld stancld marked this pull request as ready for review October 8, 2022 11:14
@stancld stancld changed the title bugfix (Rouge): Evaluate pred_lsum only if lsum in rouge_keys bugfix: Evaluate pred_lsum only if lsum in rouge_keys Oct 8, 2022
@codecov
Copy link

codecov bot commented Oct 8, 2022

Codecov Report

Merging #1258 (be1f604) into master (e06a0c4) will decrease coverage by 42%.
The diff coverage is 100%.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #1258     +/-   ##
========================================
- Coverage      86%     44%    -42%     
========================================
  Files         195     195             
  Lines       11462   11463      +1     
========================================
- Hits         9835    5005   -4830     
- Misses       1627    6458   +4831     

@SkafteNicki SkafteNicki added the bug / fix Something isn't working label Oct 8, 2022
@SkafteNicki SkafteNicki added this to the v0.11 milestone Oct 8, 2022
@mergify mergify bot added the ready label Oct 9, 2022
@Borda Borda enabled auto-merge (squash) October 10, 2022 13:31
CHANGELOG.md Show resolved Hide resolved
@mergify mergify bot removed the ready label Oct 10, 2022
@mergify mergify bot added the ready label Oct 10, 2022
@Borda Borda merged commit fbfe974 into master Oct 10, 2022
@Borda Borda deleted the bugfix/pred-lsum branch October 10, 2022 21:07
Borda pushed a commit that referenced this pull request Oct 21, 2022
Evaluate pred_lsum only if lsum in rouge_keys to avoid downloading
"punkt" package from `nltk`, which raises an error when using e.g. DDP.

* chlog
* lower

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
(cherry picked from commit fbfe974)
Borda pushed a commit that referenced this pull request Oct 21, 2022
Evaluate pred_lsum only if lsum in rouge_keys to avoid downloading
"punkt" package from `nltk`, which raises an error when using e.g. DDP.

* chlog
* lower

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
(cherry picked from commit fbfe974)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug / fix Something isn't working ready topic: Text
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NLTK punkt is downloaded by Rouge even when unneeded
3 participants