Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Update nltk requirement from <3.6.5 to <3.6.6 (#307)
Browse files Browse the repository at this point in the history
* Update nltk requirement from <3.6.5 to <3.6.6

Updates the requirements on [nltk](https://github.com/nltk/nltk) to permit the latest version.
- [Release notes](https://github.com/nltk/nltk/releases)
- [Changelog](https://github.com/nltk/nltk/blob/develop/ChangeLog)
- [Commits](nltk/nltk@2.0.1rc1...3.6.5)

---
updated-dependencies:
- dependency-name: nltk
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* NLTK no longer splits tokens for us

* Now we _have_ to have the most recent version

* CHANGELOG.md

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dirk Groeneveld <[email protected]>
  • Loading branch information
dependabot[bot] and dirkgr committed Nov 12, 2021
1 parent 6c4daca commit 05dd4e6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

### Changed

- Following a breaking change in the NLTK API, we now depend on the most recent version only.


## [v2.8.0](https://github.com/allenai/allennlp-models/releases/tag/v2.8.0) - 2021-11-05

### Changed
Expand Down
2 changes: 1 addition & 1 deletion allennlp_models/rc/tools/narrativeqa.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def bleu_4(p, g):


def meteor(p, g):
return meteor_score(g, p)
return meteor_score([x.split() for x in g], p.split())


def rouge_l(p, g):
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ conllu==4.4.1
# For RC models
word2number>=1.1
py-rouge==1.1
nltk<3.6.5
nltk>=3.6.5

# For CNN/DailyMail dataset reader
ftfy

0 comments on commit 05dd4e6

Please sign in to comment.