Created
March 18, 2024 02:03
-
-
Save fanyang89/0d2859d9464fc6fad0eb40b8c90d0103 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nltk | |
import ssl | |
try: | |
_create_unverified_https_context = ssl._create_unverified_context | |
except AttributeError: | |
pass | |
else: | |
ssl._create_default_https_context = _create_unverified_https_context | |
nltk.set_proxy("socks5://127.0.0.1:7890") | |
nltk.download() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment