nltk.download()在OS X上挂起 [英] nltk.download() hangs on OS X

查看:88
本文介绍了nltk.download()在OS X上挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

nltk.download()在OS X上为我挂起.这是发生的情况:

nltk.download() is hanging for me on OS X. Here is what happens:

$python
>>> Python 2.7.2 (default, Oct 11 2012, 20:14:37) 
>>> [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
>>> import nltk
>>> nltk.download()

showing info http://nltk.github.com/nltk_data/

此后,它完全冻结.

我根据 ntlk安装页面安装了所有内容.我在OS X 10.8.3上.在我的Linux机器上,它可以正常工作.

I installed everything according to the ntlk install page. I'm on OS X 10.8.3. On my Linux box, it just works with no problems.

有什么想法吗?

推荐答案

请尝试运行nltk.download_shell(),因为最有可能显示下载程序UI的问题.运行download_shell()函数将绕过它.

Try running nltk.download_shell() instead as there is most likely an issue displaying the downloader UI. Running the download_shell() function will bypass it.

这篇关于nltk.download()在OS X上挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆