diff --git a/quantgov/__init__.py b/quantgov/__init__.py index 219ccfa..92d507f 100644 --- a/quantgov/__init__.py +++ b/quantgov/__init__.py @@ -9,9 +9,8 @@ 'utils', ] - from . import corpora # Backwards compatibility from .utils import load_driver -__version__ = '0.4.0.dev' +__version__ = '0.4.0' diff --git a/quantgov/corpus/builtins.py b/quantgov/corpus/builtins.py index bb9b9b6..269e2ac 100644 --- a/quantgov/corpus/builtins.py +++ b/quantgov/corpus/builtins.py @@ -146,8 +146,10 @@ class ShannonEntropy(): flags=('--stopwords', '-sw'), kwargs={ 'help': 'stopwords to ignore', - 'default': (nltk.corpus.stopwords.words('english') - if NLTK else None) + 'default': ( + None if not NLTK else + nltk.corpus.stopwords.words('english') + ) } ), quantgov.utils.CLIArg(