Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTP Error 403: Forbidden when using NLTK [duplicate]

Tags:

python

nltk

I am trying using nltk in my project and in order to download the nltk data you are supposed to do:

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

However, I keep getting the HTTP error 403. I checked online and everyone says to change the default URL to the newest nltk url, but it hasn't worked and I keep getting the error. Any clues?

like image 573
Eric Agredo Avatar asked Jun 22 '26 15:06

Eric Agredo


1 Answers

As @alvas suggested on this page, this is an easy fix:

from nltk.downloader import Downloader
dler = Downloader('https://pastebin.com/raw/D3TBY4Mj')
dler.download()

Getting 405 error while trying to download nltk data

like image 79
Bob Avatar answered Jun 25 '26 04:06

Bob



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!