nltk data download problem

3,533 views
Skip to first unread message

vishnu kumar garg

unread,
Mar 1, 2011, 2:39:00 AM3/1/11
to nltk-users
I have installed cntlm and it is working fine.
But still i am not able to download nltk data.



output is :

vishnu@xortics:~$ wget www.nltk.org
--2011-03-01 13:00:36-- http://www.nltk.org/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:12345... failed: Connection refused.
Connecting to localhost|127.0.0.1|:12345... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `index.html.3'

[ <=> ] 24,768 159K/s in
0.2s

2011-03-01 13:00:38 (159 KB/s) - `index.html.3' saved [24768]


vishnu@xortics:~sudo python -m nltk.downloader -d /usr/share/nltk_data
all
[nltk_data] Error loading all: <urlopen error [Errno 110] Connection
[nltk_data] timed out>
Error installing package. Retry? [n/y/e]
y
Traceback (most recent call last):
File "/usr/lib/python2.6/runpy.py", line 122, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.6/runpy.py", line 34, in _run_code
exec code in run_globals
File "/usr/local/lib/python2.6/dist-packages/nltk/downloader.py",
line 2162, in <module>
halt_on_error=options.halt_on_error)
File "/usr/local/lib/python2.6/dist-packages/nltk/downloader.py",
line 666, in download
if not self.download(msg.package.id, download_dir,
AttributeError: 'NoneType' object has no attribute 'id'




plz help me.................

vineet yadav

unread,
Mar 1, 2011, 3:22:52 AM3/1/11
to nltk-...@googlegroups.com, vishnu kumar garg
Hi,
first install nltk, check out installation instruction for that
http://www.nltk.org/download
Than use nltk.download() to download nltk_data(http://www.nltk.org/data)
Thanks
Vineet Yadav

> --
> You received this message because you are subscribed to the Google Groups "nltk-users" group.
> To post to this group, send email to nltk-...@googlegroups.com.
> To unsubscribe from this group, send email to nltk-users+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nltk-users?hl=en.
>
>

Avinesh PVS

unread,
Mar 1, 2011, 3:31:56 AM3/1/11
to nltk-...@googlegroups.com, vishnu kumar garg
Dear Vishnu,

Some points before you install nltk:

1) wget www.nltk.org doesn't install nltk on your computer.

2) The error you are getting after typing the following command:

python -m nltk.downloader -d /usr/share/nltk_data

It says its not able to load the modules.

So now its time to install nltk.

Regards
-Avinesh


Reply all
Reply to author
Forward
0 new messages