install nltk for python 2.x
installation steps for nltk in python;
Mac/Unix
- Install NLTK: run “$sudo pip install -U nltk“
- Install Numpy (optional): run”$sudo pip install -U numpy“
- Test installation: run”$ python” and then type “import nltk“
Note: For older versions of Python it might be necessary to install setuptools (see setuptools) and to install pip ($sudo easy_install pip)
Command line installation
intallation all packet;
$python -m nltk.downloader all
or
$sudo python -m nltk.downloader -d /usr/local/share/nltk_data all
installation specifical packet;
$python -m nltk.downloader panlex_lite
Note: all of information is for ubuntu