python-wrapper-OpenIE5 icon indicating copy to clipboard operation
python-wrapper-OpenIE5 copied to clipboard

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

Open reobroqn opened this issue 5 years ago • 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!

reobroqn avatar Sep 09 '20 09:09 reobroqn

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

tush05tgsingh avatar Jun 21 '21 06:06 tush05tgsingh

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.

tush05tgsingh avatar Jun 25 '21 07:06 tush05tgsingh

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>. ')

PursuitYP avatar Apr 06 '23 02:04 PursuitYP