nikitakit / self-attentive-parser

High-accuracy NLP parser with models for 11 languages.
https://parser.kitaev.io/
MIT License
861 stars 153 forks source link

cannot download any model (certificate verify failed) #15

Closed Lolologist closed 5 years ago

Lolologist commented 5 years ago

benepar.download('benepar_en') [nltk_data] Error loading benepar_en: <urlopen error [SSL: [nltk_data] CERTIFICATE_VERIFY_FAILED] certificate verify failed [nltk_data] (_ssl.c:847)> False

Attempts to download the models as in the instructions fail due to the above. Any ideas?

Lolologist commented 5 years ago

Note that if I try to just make a parser for benepar_en, I get the following (asking me to try to download benepar_en.gz, which the instructions don't ask for, and neither works.):

parser = benepar.Parser("benepar_en") Traceback (most recent call last): File "", line 1, in File "/Users/daniel/Repos/offsites/venv/lib/python3.6/site-packages/benepar/nltk_plugin.py", line 28, in init super(Parser, self).init(name, batch_size) File "/Users/daniel/Repos/offsites/venv/lib/python3.6/site-packages/benepar/base_parser.py", line 158, in init graph_def = tf.GraphDef.FromString(load_model(name)) File "/Users/daniel/Repos/offsites/venv/lib/python3.6/site-packages/benepar/downloader.py", line 21, in load_model raise LookupError(arg) LookupError:


Resource benepar_en.gz not found. Please use the NLTK Downloader to obtain the resource:

import nltk benepar.download('benepar_en.gz')

Attempted to load models/benepar_en.gz

Searched in:

Lolologist commented 5 years ago

Solved by following instructions here: https://stackoverflow.com/questions/41348621/ssl-error-downloading-nltk-data