Skip to content

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

Open
@davidignacioam

Description

@davidignacioam

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions