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(