-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection refused after large number of queries #26
Comments
I think this is because the connection is not closed for checking whether the Stanford CoreNLP server is started: Maybe add # Checks that the Stanford CoreNLP server is started.
try:
requests.get(self.server_url)
except requests.exceptions.ConnectionError:
raise Exception('Check whether you have started the CoreNLP server e.g.\n'
'$ cd stanford-corenlp-full-2015-12-09/ \n'
'$ java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer') or even better: remove that check entirely - it's not really necessary anyway. |
Solved the problem by using python requests session instead of .post directly |
Hi, could you please point out what modifications you made to which line? I am currently experiencing the same issues here. Thank you! |
@huihanlhh it was long ago, can't find the code right now |
I was mistaken and posted the issue here as I thought it's an issue with the CoreNLP server. Is there a chance that the problem comes from
pycorenlp
and that it's a similar issue thatstanza
had?My problem is that after sending a larger number of requests I am getting the following error:
The text was updated successfully, but these errors were encountered: