Hi!
I built a pretty simple space, but I get this error:
ib/python3.10/site-packages/qasem_parser/__init__.py", line 2, in <module>
from .predicate_detection import BertPredicateDetector
File "/home/user/.local/lib/python3.10/site-packages/qasem_parser/predicate_detection.py", line 5, in <module>
from qanom.candidate_extraction.candidate_extraction import get_verb_forms_from_lexical_resources
File "/home/user/.local/lib/python3.10/site-packages/qanom/candidate_extraction/candidate_extraction.py", line 48, in <module>
if (not nltk_downloader.is_installed(tagger_package)):
File "/home/user/.local/lib/python3.10/site-packages/nltk/downloader.py", line 844, in is_installed
return self.status(info_or_id, download_dir) == self.INSTALLED
File "/home/user/.local/lib/python3.10/site-packages/nltk/downloader.py", line 860, in status
info = self._info_or_id(info_or_id)
File "/home/user/.local/lib/python3.10/site-packages/nltk/downloader.py", line 603, in _info_or_id
return self.info(info_or_id)
File "/home/user/.local/lib/python3.10/site-packages/nltk/downloader.py", line 1009, in info
self._update_index()
File "/home/user/.local/lib/python3.10/site-packages/nltk/downloader.py", line 952, in _update_index
ElementTree.parse(urlopen(self._url)).getroot()
File "/usr/local/lib/python3.10/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/lib/python3.10/urllib/request.py", line 519, in open
response = self._open(req, data)
File "/usr/local/lib/python3.10/urllib/request.py", line 536, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/local/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "/usr/local/lib/python3.10/urllib/request.py", line 1391, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "/usr/local/lib/python3.10/urllib/request.py", line 1351, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution>
the code (from a github repo) that causes the error is the following (the third line):
tagger_package = 'averaged_perceptron_tagger'
nltk_downloader = Downloader()
if (not nltk_downloader.is_installed(tagger_package)):
nltk.download(tagger_package)
I’ll appreciate your help!
Thank you very much