nltk / nltk_data

NLTK Data
1.4k stars 1.03k forks source link

Server Index link is not working #192

Closed thewebcoder2009 closed 1 year ago

thewebcoder2009 commented 1 year ago

The link https://raw.githubusercontent.com/nltk/nltk_data/gh-pages/index.xml from where the nltk downloads model is not working for me. Whenever I try to open it manually it shows raw.githubusercontent.com took too long to respond. And when python tries to download it shows "Error loading punkt: <urlopen error [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>"

How do I fix this. Note :- My network is good also.

tomaarsen commented 1 year ago

Hello!

You're not the only one who's been experiencing these issues:

However, I just can't seem to reproduce the issues. https://raw.githubusercontent.com/nltk/nltk_data/gh-pages/index.xml loads perfectly for me, in all of my browsers, and even on my phone. The website is simply this GitHub page: https://github.com/nltk/nltk_data/blob/gh-pages/index.xml, and then clicking on "raw" to get only the content from index.xml. With other words, this isn't some shady or inconsistent host, it's GitHub themselves. Perhaps you can load the page by clicking on the "raw" button on that page?

I've tried a few websites that check whether a site is pingable or not, and most seem to report that the site is accessible. I'm not quite sure what I can do about this.

thewebcoder2009 commented 1 year ago

By clicking raw button then also it is showing same error

tomaarsen commented 1 year ago

This seems to indeed be caused by https://raw.githubusercontent.com sometimes being down. I don't think there's much I can do about that.

thewebcoder2009 commented 1 year ago

Hmm... OK Thanks for replying

tomaarsen commented 1 year ago

@thecoder1234-ssvbhilai There's a bit more info and a workaround here: https://github.com/nltk/nltk/issues/3092#issuecomment-1366526151

thewebcoder2009 commented 1 year ago

still not working

tomaarsen commented 1 year ago

Some users are suggesting that this is a DNS error. Please look here: https://github.com/nltk/nltk/issues/3092#issuecomment-1374990896.

AnkitDubey040 commented 1 year ago

I was also facing the same problem , but for India I can say the problem is with Jio Internet used , it is somehow causing the problem , when i am using different network for wifi like BSNL or Airtel then it is working fine

thewebcoder2009 commented 1 year ago

yes I am also using jio fiber

Feruz00 commented 1 year ago

I very tired this error. Many days try solve this error. I have too error. Network good. Only get error. If I cannot fix this , can I download nltk files without python code?

tomaarsen commented 1 year ago

Yes, you can download the NLTK files without Python code: https://github.com/nltk/nltk/issues/3092#issuecomment-1398658093 There are some useful things to try in that thread.