Closed Lolologist closed 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:
Solved by following instructions here: https://stackoverflow.com/questions/41348621/ssl-error-downloading-nltk-data
Attempts to download the models as in the instructions fail due to the above. Any ideas?