Python Programming/Natural Language Toolkit

From Wikibooks, open books for an open world
Jump to navigation Jump to search
nltk
Natural Language Toolkit
PyPi Linkhttps://pypi.python.org/pypi/nltk
Pip commandpip install nltk

NLTK is a module that provides many options for literature and word handling.

Downloading[edit | edit source]

The NLTK module does not have anything downloaded. It has a function, download() to download things. In order to bring up the download gui, run

from nltk import download
download()

You can also put in the specific thing you want to download

from nltk import download
download('words') #this will download the list of about 236736 words.