Skip to content

Commit

Permalink
Stopwords hotfix (#51)
Browse files Browse the repository at this point in the history
* adding stopwords to default download

* Bumping version to 0.4.1
  • Loading branch information
mgasvoda committed Jun 12, 2018
1 parent 05e9958 commit 94103ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion quantgov/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@

from .utils import load_driver

__version__ = '0.4.01.'
__version__ = '0.4.1'
3 changes: 3 additions & 0 deletions quantgov/corpus/builtins.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
if NLTK:
try:
nltk.corpus.wordnet.ensure_loaded()
nltk.corpus.stopwords.ensure_loaded()
except LookupError:
nltk.download('stopwords')
nltk.corpus.stopwords.ensure_loaded()
nltk.download('wordnet')
nltk.corpus.wordnet.ensure_loaded()

Expand Down

0 comments on commit 94103ff

Please sign in to comment.