nltk (Natural Language Toolkit)

Table of Contents

Setup

Supporting Libraries / Dependencies

To work with the following data sources in Pandas, verify that the Python environment has the supporting libraries installed either via pip or through the Anaconda distribution.

Required Libraries:

  • regex
  • tqdm

Documentation

NLTK Downloader Shell

Process

Inputting the following into the Jupyter notebook accesses the NLTK Downloader Shell.

nltk.download_shell()

The input is defined by the keyboard shortcuts noted in its menu. Use l for List to access the available Packages & Collections noted below. To download a specific package, first enter d for Download and then the name of the intended package, such as stopwords in this case. Once it has downloaded and installed to the noted directory, it will show up in the list with an * noting that it has already been installed.

Packages & Collections