Skip to content

Commit

Permalink
Merge branch 'master' into bugfix/plot_collection
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda authored May 16, 2023
2 parents 419c5c8 + 4cef0ae commit 51f3449
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed `ax` plotting logging in `MetricCollection ([#1783](https://github.com/Lightning-AI/torchmetrics/pull/1783))


- Fixed lookup for punkt sources being downloaded in `RougeScore` [#1789](https://github.com/Lightning-AI/torchmetrics/pull/1789)


## [0.11.4] - 2023-03-10

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion requirements/nominal_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# in case you want to preserve/enforce restrictions on the latest compatible version, add "strict" as an in-line comment

pandas >1.0.0, <=2.0.1 # cannot pin version due to numpy version incompatibility
dython <=0.7.3 # todo: pin version, but some version resolution issue
dython <=0.7.4
scipy >1.0.0, <1.11.0 # cannot pin version due to some version conflicts with `oldest` CI configuration
2 changes: 1 addition & 1 deletion src/torchmetrics/functional/text/rouge.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _ensure_nltk_punkt_is_downloaded() -> None:
import nltk

try:
nltk.data.find("tokenizers/punkt.zip")
nltk.data.find("tokenizers/punkt")
except LookupError:
try:
nltk.download("punkt", quiet=True, force=False, halt_on_error=False, raise_on_error=True)
Expand Down

0 comments on commit 51f3449

Please sign in to comment.