install nltk for python 2.x

installation steps for nltk in python;

Mac/Unix

  1. Install NLTK: run “$sudo pip install -U nltk
  2. Install Numpy (optional): run”$sudo pip install -U numpy
  3. 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

Semiha Makinist Uzman on 29 Aralık 2015 yazdı
Yorum Ekle
  • 0 Yanıt(lar)
  • Yanıtınız

    Cevabınızı göndererek Gizlilik Politikası ve Hizmet Şartlarını kabul ediyorsunuz.