requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))
reobroqn opened this issue · 3 comments
reobroqn commented
tush05tgsingh commented
Hi, I am getting the same error. Any update on this ?
tush05tgsingh commented
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.
PursuitYP commented
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>. ')