I already did all process in SETUP section, everthing works fine
But while I run python -m webaskb_run.py gen_noisy_sup, got this error
I have started stanford server in the same host
Thanks for your help!
/home2/xhuang/webaskb/venv/lib/python3.6/site-packages/nltk/tag/stanford.py:183: DeprecationWarning:
The StanfordTokenizer will be deprecated in version 3.2.5.
Please use nltk.tag.corenlp.CoreNLPPOSTagger or nltk.tag.corenlp.CoreNLPNERTagger instead.
super(StanfordNERTagger, self).__init__(*args, **kwargs)
Traceback (most recent call last):
File "/home2/xhuang/webaskb/venv/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/home2/xhuang/webaskb/venv/lib/python3.6/site-packages/urllib3/connectionpool.py", line 445, in _make_request
six.raise_from(e, None)
File "<string>", line 3, in raise_from
File "/home2/xhuang/webaskb/venv/lib/python3.6/site-packages/urllib3/connectionpool.py", line 440, in _make_request
httplib_response = conn.getresponse()
File "/home2/xhuang/.conda/envs/py36/lib/python3.6/http/client.py", line 1379, in getresponse
response.begin()
File "/home2/xhuang/.conda/envs/py36/lib/python3.6/http/client.py", line 311, in begin
version, status, reason = self._read_status()
File "/home2/xhuang/.conda/envs/py36/lib/python3.6/http/client.py", line 280, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home2/xhuang/webaskb/venv/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/home2/xhuang/webaskb/venv/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/home2/xhuang/webaskb/venv/lib/python3.6/site-packages/urllib3/util/retry.py", line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='my proxy ip', port=7890): Max retries exceeded with url: http://127.0.0.1:9000/ (Caused by ProxyError('Cannot connect to proxy.', RemoteDisconnected('Remote end closed connection without response',)))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home2/xhuang/webaskb/venv/lib/python3.6/site-packages/pycorenlp/corenlp.py", line 19, in annotate
requests.get(self.server_url)
File "/home2/xhuang/webaskb/venv/lib/python3.6/site-packages/requests/api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "/home2/xhuang/webaskb/venv/lib/python3.6/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/home2/xhuang/webaskb/venv/lib/python3.6/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/home2/xhuang/webaskb/venv/lib/python3.6/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/home2/xhuang/webaskb/venv/lib/python3.6/site-packages/requests/adapters.py", line 510, in send
raise ProxyError(e, request=request)
requests.exceptions.ProxyError: HTTPConnectionPool(host='my proxy ip', port=7890): Max retries exceeded with url: http://127.0.0.1:9000/ (Caused by ProxyError('Cannot connect to proxy.', RemoteDisconnected('Remote end closed connection without response',)))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home2/xhuang/.conda/envs/py36/lib/python3.6/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/home2/xhuang/.conda/envs/py36/lib/python3.6/runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "/home2/xhuang/webaskb/webaskb_run.py", line 17, in <module>
noisy_sup.gen_noisy_supervision()
File "/home2/xhuang/webaskb/noisy_supervision.py", line 191, in gen_noisy_supervision
question, similarity, annotations, question_words, span_words = self.calc_similarity_mat(question)
File "/home2/xhuang/webaskb/noisy_supervision.py", line 48, in calc_similarity_mat
annotations = self.annotate.annotate_question(question['question'])
File "/home2/xhuang/webaskb/common/annotations.py", line 21, in annotate_question
'outputFormat': 'json'
File "/home2/xhuang/webaskb/venv/lib/python3.6/site-packages/pycorenlp/corenlp.py", line 21, in annotate
raise Exception('Check whether you have started the CoreNLP server e.g.\n'
Exception: Check whether you have started the CoreNLP server e.g.
$ cd stanford-corenlp-full-2015-12-09/
$ java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer
I already did all process in SETUP section, everthing works fine
But while I run
python -m webaskb_run.py gen_noisy_sup
, got this errorI have started stanford server in the same host
Thanks for your help!