nltk.download(), unable to download book, out of date issue

2,094 views
Skip to first unread message

Zac

unread,
Feb 16, 2013, 3:38:19 AM2/16/13
to nltk-...@googlegroups.com
I am currently following this book by Steven Bird, Ewan Klein and Edward Loper :

but i am facing problem on downloading the data with the following code:

>>> import nltk
>>> nltk.download()

after entering the code above, NLTK downloader appear, however, none of the collections in the collections tab can be downloaded. 
their status were all "out of date" as indicated. Would you know how could i deal with the problem, because as long as I couldn't get the data, I couldn't try out the example given in the book.



and after entering [ from nltk.book import * ], 
I get many errors instead of the expected output (with blue backgroud shown below)
I believe this is due to unavailability of the data (that should be download).



Thanks once again for help out.

Morten Minde Neergaard

unread,
Feb 16, 2013, 5:23:57 AM2/16/13
to nltk-...@googlegroups.com
At 00:38, Sat 2013-02-16, Zac wrote:
[…]
> after entering the code above, NLTK downloader appear, however, none of the
> collections in the collections tab can be downloaded.

Could you be a bit more specific as to what you try to do, and what
errors appear? Also, please mention which version of NLTK you have
installed and how.


Smiles,
--
Morten Minde Neergaard

Zac

unread,
Feb 20, 2013, 6:59:48 AM2/20/13
to nltk-...@googlegroups.com
Thanks for the reply,

I am using NLTK version 2.0.4 and Python 2.7.3.
I follow the instructions as given on 
http://nltk.org/install.html 

Instructions as follow:

NLTK 2.0.4 can be get from 
https://pypi.python.org/pypi/nltk

I am trying download the nltk data, as instructed by the book, it asked me to get the book collection:


Error occur as below:



Thanks for looking up on my case.

Zac 
 

Zac

unread,
Feb 20, 2013, 7:02:42 AM2/20/13
to nltk-...@googlegroups.com

p/s: I did not install  PyYAML: http://pyyaml.org/wiki/PyYAML

I thought it isn't neccessary...

SHEKHAR

unread,
Feb 20, 2013, 12:44:22 PM2/20/13
to nltk-...@googlegroups.com
just restart :

pay proper attention ........here no problem ..


i done it on 3 pCs.. ... 1 windows...2 linux

Morten Minde Neergaard

unread,
Feb 20, 2013, 1:27:26 PM2/20/13
to nltk-...@googlegroups.com
At 03:59, Wed 2013-02-20, Zac wrote:
[…]
> Error occur as below:

The download is failing, as it says, with a timeout.

I'm guessing it's due to some sort of network, firewall or proxy issue
on your computer or at your location.

You *could* manually download the packages from
https://github.com/nltk/nltk_data/tree/gh-pages

You could also install to a different computer, and then copy the
nltk_data folder to yours.


Cheers,
--
Morten Minde Neergaard
Reply all
Reply to author
Forward
0 new messages