Skip to content

TrackMaven/docker-ntlk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

A Docker container which installs Python's nltk library.

Usage:

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

About

A Docker container with the Python NLTK library and the Brown corpus installed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published