A Docker container which installs Python's nltk library.
docker run -it trackmaven/nltkThis 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', ...]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