I know I can use:
nltk.download()
But I really don't want to waste time letting the whole thing download. How do I just install the vader_lexicon
I know I can use:
nltk.download()
But I really don't want to waste time letting the whole thing download. How do I just install the vader_lexicon
Use nltk.download()
in Python with/without Jupyter:
>>> import nltk
>>> nltk.download('vader_lexicon')
[nltk_data] Downloading package vader_lexicon to
[nltk_data] /Users/liling.tan/nltk_data...
[nltk_data] Package vader_lexicon is already up-to-date!
True
Or on terminal:
$ python -m nltk.downloader vader_lexicon
[nltk_data] Downloading package vader_lexicon to
[nltk_data] /Users/liling.tan/nltk_data...
[nltk_data] Package vader_lexicon is already up-to-date!
You may try the following command in command prompt/terminal
python -m nltk.downloader vader_lexicon
Output for Windows:
[nltk_data] Downloading package vader_lexicon to
[nltk_data] C:\Users\username\AppData\Roaming\nltk_data...
It will download only the specific package to nltk_data
folder.