Hands-On-Natural-Language-Processing-with-Python icon indicating copy to clipboard operation
Hands-On-Natural-Language-Processing-with-Python copied to clipboard

Error trying to use “nltk.download()” in Text Summarization. Python 3.7

Open davidignacioam opened this issue 6 years ago • 0 comments
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

davidignacioam avatar Jun 21 '19 16:06 davidignacioam