Tag Archives: NLP toolkit

Installing uplug on Linux

Tested on: Xubuntu 12.04 LTS (64-bit) for languages English, German (& French)

  • Install/check for uplug dependencies (libmodule-install-perl is compulsory, others could also be installed through cpan when running make):
  1. sudo apt-get install libmodule-install-perl libxml-parser-perl libxml-simple-perl libfile-sharedir-perl libipc-run-perl
  • Clone latest version from bitbucket repository:
  1. git clone https://bitbucket.org/tiedemann/uplug.git uplug
  • Third-party tools that are not automatically installed:
    • MElt (Tagger for French)
      • Dependencies: sudo apt-get install gawk python-numpy
  • Install individual modules:
cd uplug-XY
perl Makefile.PL
make
sudo make install
  • Install all modules:
cd uplug
make all
sudo make install
make test

Installing nltk3 for Python3 in virtual environment on Linux

[Last update: 04/01/2015]

Prerequisites: Install Python and set up virtual environment  & Install pip in virtual environment
Tested on: Xubuntu 12.04 LTS / 13.10 / 14.04 LTS (64-bit) with ActivePython installed in /opt

  • (skip, if activated) Activate the virtual environment you would like to install nltk (v3) in:
  1. cd ~/venv/apy3341
    source bin/activate
  • Use pip to install the latest version of nltk:
  1. (apy3341):~$ pip install -U nltk
  • [January 2015] Workaround for users with setuptools versions >=10 (see NLTK Issue #824):
  1. (apy3341):~$ pip install setuptools==9.1
    (apy3341):~$ pip install -U nltk
  • (skip, if nltk_data already present on system) Start Python interpreter in virtual environment and download nltk_data (corpora, packages & models):
(apy3341) mki@ubuntu:~$ python
ActivePython 3.3.4.1 (ActiveState Software Inc.) based on
Python 3.3.4 (default, Feb 25 2014, 14:59:15) 
[GCC 4.0.2 20051125 (Red Hat 4.0.2-8)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import nltk
>>> nltk.download()