NLTK Wordnet下载已过期 [英] NLTK Wordnet Download Out of Date
问题描述
Python的新手,打算开始使用NLTK.在Windows 7 64位系统上粗略地安装Python之后,现在我要粗略地下载位于以下位置的Wordnet和其他NLTK数据包:
New to Python, tying to get started with NLTK. After a rough time installing Python on my Windows 7 64-bit system, I am now having a rough time downloading Wordnet and other NLTK data packages located here:
有些软件包下载,有些说过期"
Some packages download, some say "Out of Date"
import nltk
nltk.download()
当我使用以上内容下载时,如果我按下取消"按钮,该程序将不允许我取消.
When I use the above to download, the program doesn't let me cancel if I hit the cancel button.
因此,我只是将其关闭,然后直接转到上面的链接尝试手动下载.例如,当我尝试下载Wordnet时,下载会在我的浏览器中开始,但在下载过程中会停止!
So, I just shut it down and go directly to the link above to try and download it manually. When I try to download Wordnet for example, the download starts in my browser but stops mid-way through download!
作为初学者,这让我感到非常沮丧.是否有其他方法可以为nltk下载Wordnet?
This is very frustrating for me as a beginner. Is there an alternative way to download Wordnet for nltk?
推荐答案
我遇到了同样的问题.在我的情况下,问题在于,当NLTK下载程序启动时,其服务器索引为
I was facing the same issue. The issue in my case was that when the NLTK downloader started it had the server index as
http://nltk.github.com/nltk_data/
这需要更改为
您可以通过进入NLTK Downloader窗口和File-> Change Server Index来更改它.
You can change this by going into the NLTK Downloader window and the File->Change Server Index.
关于, 邦森
这篇关于NLTK Wordnet下载已过期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!