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

Requiring nltk>=3.9.1; switch punkt to punkt_tab #102

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

agmoore4
Copy link
Contributor

Previous versions of nltk contained a security vulnerability, discussed in this issue: nltk/nltk#3266. It is strongly recommended to update to version 3.9.1 or higher to resolve the vulnerability.

Therefore requirements.txt is modified to require nltk>=3.9.1.

With nltk 3.9.1, punkt is deprecated cannot be downloaded using nltk.download('punkt'). Instead, punkt_tab should be used. The appropriate changes were made to pvops/text/preprocess.py.

@kbonney kbonney merged commit 09f804b into sandialabs:master Oct 24, 2024
16 checks passed
@agmoore4 agmoore4 deleted the nltk-update branch October 25, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants