Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NLTK ERROR when download punkt #154

Open
mengxun1437 opened this issue May 3, 2021 · 2 comments
Open

NLTK ERROR when download punkt #154

mengxun1437 opened this issue May 3, 2021 · 2 comments

Comments

@mengxun1437
Copy link

here is the error information:
(SQLMODEL) mengxun@mengxun:~/SQLMODEL$ python -m nltk.downloader punkt /home/mengxun/anaconda3/envs/SQLMODEL/lib/python3.8/runpy.py:127: RuntimeWarning: 'nltk.downloader' found in sys.modules after import of package 'nltk', but prior to execution of 'nltk.downloader'; this may result in unpredictable behaviour warn(RuntimeWarning(msg)) [nltk_data] Error loading punkt: <urlopen error [Errno 111] Connection [nltk_data] refused> Error installing package. Retry? [n/y/e] e

system : Ubuntu 20.04

can anyone give me a tip to solve it?

@RiseInRose
Copy link

https://www.nltk.org/data.html#installing-via-a-proxy-web-server

@jiaohuix
Copy link

jiaohuix commented Jun 3, 2024

@RiseInRose it works for me!!! thanks!

import nltk
nltk.set_proxy('http://192.168.1.10:4780')
nltk.download('cmudict')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants