Public | Automated Build

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

A Docker container which installs Python's nltk library.

Usage:

docker run -it contentdj/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=punkt maxent_treebank_pos_tagger" -it contentdj/nltk
Docker Pull Command
Owner
contentdj
Source Repository

Comments (0)