TextBlob
TextBlob copied to clipboard
Importing nltk on cgi-bin python webpage on localhost.
Hello,
I have a cgi-bin webpage. I use textblob in my python codes. When I run my website on localhost, I get the following error: "Resource u'tokenizers/punkt/english.pickle' not found. Please use the NLTK Downloader to obtain the resource:"
nltk.download('all'), or "python -m textblob.download_corpora" didn't solve my problem.
How can I fix this issue?
Thanks
Bump same issue, also there is another post about this same issue about ec2.
Verify the file is accessible by the user executing the script. For example, for Apache:
sudo -u apache cat <data dir>/nltk_data/tokenizers/punkt/english.pickle