1

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

alvas
  • 115,346
  • 109
  • 446
  • 738
madsthaks
  • 2,091
  • 6
  • 25
  • 46

2 Answers2

4

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!
alvas
  • 115,346
  • 109
  • 446
  • 738
0

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.

Soumendra
  • 1,518
  • 3
  • 27
  • 54