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

Lazy load stopwords module to prevent downloading when it's not needed #194

Merged
merged 2 commits into from
Oct 20, 2020

Conversation

hugoabonizio
Copy link
Contributor

Import stopwords module inside replace_stopwords function, so the data is downloaded only when it's necessary.

Fixes #193

@hugoabonizio
Copy link
Contributor Author

I also moved the spaCy model downloading to nlp.py file.

@jbesomi jbesomi merged commit a1c03b3 into jbesomi:master Oct 20, 2020
@jbesomi
Copy link
Owner

jbesomi commented Oct 20, 2020

Thank you, Hugo! And welcome to Texthero's contributors family. You can open a new PR and add your name under the contributors in the homepage README.md :)

@hugoabonizio hugoabonizio deleted the lazy-load-stopwords branch October 21, 2020 10:34
@jbesomi jbesomi mentioned this pull request Jul 1, 2021
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.

prevent texthero from downloading stopwords
2 participants