vaibhavad/python-wrapper-OpenIE5

requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))

reobroqn opened this issue · 3 comments

image
Hello, i'm having this issue when trying to segmentation then send every sentence to extract, i don't use --split because i have to reuse those sentences later.
Help!

Hi, I am getting the same error. Any update on this ?

Hi, i got a quick fix. Bascially batch your data and skip the line it is showing the error on. make the process sleep a little and it will restart to give you the results except on the line the error occured.

In my case, this error is caused by empty lines or sentences with only one letter. You can add some special tokens at the end of the sentence to allow the model to continue processing, such as:
sentence = str(sentence + ' a b. ')
or:
sentence = str(sentence + ' <sentence end>. ')