Hands-On-Natural-Language-Processing-with-Python
Hands-On-Natural-Language-Processing-with-Python copied to clipboard
Error trying to use “nltk.download()” in Text Summarization. Python 3.7
trafficstars
I searched in web and I found the solution. I want to share it. Instead of just put “nltk.download()”, try:
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.download()
Hence, will open a windows to choose the specific tool.
Sent with GitHawk