Public | Automated Build

Last pushed: 3 years ago
Short Description
Short description is empty for this repo.
Full Description

A Docker container which installs Python's nltk library.


docker run -it trackmaven/nltk

This will open a Python shell with access to nltk and the brown corpus. To test that the install has been successful:

>>> import nltk
>>> from nltk.corpus import brown
>>> brown.words()
['The', 'Fulton', 'County', 'Grand', 'Jury', 'said', ...]

Environment variables:

To install other corpora, pass the CORPORA environment variable to the container when running. For example, to work on the spanish_grammar and treebank corpora:

docker run -e "CORPORA=spanish_grammar treebank" -it trackmaven/nltk
Docker Pull Command
Source Repository