Skip to content Skip to sidebar Skip to footer

Install Nltk 3.0 On Ubuntu 13.10 Using Tar.gz Download

I want to install nltk 3.0 on Ubuntu 13.10. I have been running Ubuntu for a few weeks (first time I am using Linux) and I have just downloaded python 3.4.0 - 3.3 is also on Ubuntu

Solution 1:

see How to use nltk3 for python33?

First install python3-pip then use it to install pyyaml

$ sudo apt-get install python3-pip
$ sudo pip3 install pyyaml
$ wget http://www.nltk.org/nltk3-alpha/nltk-3.0a3.tar.gz
$ tar -xzvf nltk-3.0a3.tar.gz
$ cd nltk-3.0a3/
$ sudo python3 setup.py install
$ python3
>>> import nltk
>>> from nltk.corpus import brown
>>> print(brown.sents()[0])
['The', 'Fulton', 'County', 'Grand', 'Jury', 'said', 'Friday', 'an', 'investigation', 'of', "Atlanta's", 'recent', 'primary', 'election', 'produced', '``', 'no', 'evidence', "''", 'that', 'any', 'irregularities', 'took', 'place', '.']

Post a Comment for "Install Nltk 3.0 On Ubuntu 13.10 Using Tar.gz Download"