0

How do I download nltk stopwords in online server Jupyter notebook? In the local host, we can easily type nltk.download and downloading starts but in online Kaggle server notebook, nltk.download doesn't work.

alvas
  • 115,346
  • 109
  • 446
  • 738
Aim_headshot
  • 111
  • 1
  • 6

1 Answers1

1

In kaggle kernel, the datasets are already pre-downloaded and packaged.

You can simply do:

import nltk
from nltk.corpus import stopwords

stopwords.words('english')

See https://www.kaggle.com/alvations/nltk-datasets?scriptVersionId=5266785

alvas
  • 115,346
  • 109
  • 446
  • 738