python - Getting 405 error while trying to download nltk data -


when try below code

python -c "import nltk; nltk.download('punkt');  nltk.download('averaged_perceptron_tagger');  nltk.download('maxent_treebank_pos_tagger');  nltk.download('wordnet')" 

the console says

[nltk_data] error loading punkt: http error 405: not allowed. [nltk_data] error loading averaged_perceptron_tagger: http error 405: [nltk_data]     not allowed. [nltk_data] error loading maxent_treebank_pos_tagger: http error 405: [nltk_data]     not allowed. [nltk_data] error loading wordnet: http error 405: not allowed. 

this caused down-age of github raw file link.

meanwhile stop-gap solution manually download file:

path_to_nltk_data=/home/username/nltk_data/ wget https://github.com/nltk/nltk_data/archive/gh-pages.zip unzip gh-pages.zip mv nltk_data-gh-pages/ $path_to_nltk_data 

we're working on finding alternative data , model downloading.

meanwhile, @everyone please check script(s) , make sure you're not overloading data downloads! thank in advance!!

please check https://github.com/nltk/nltk/issues/1787 latest updates on issue.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -