malllabiisc / RESIDE

EMNLP 2018: RESIDE: Improving Distantly-Supervised Neural Relation Extraction using Side Information

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flask server bad file descriptor

salahaz opened this issue · comments

Hello I receive the following error when running the flask based server, any suggestions on how to resolve this ?

Traceback (most recent call last): File "online/server.py", line 70, in <module> model = RESIDE(args) File "/Users/salahazekour/Documents/Projects/RESIDE-master/online/base_model.py", line 218, in __init__ nn_out, self.accuracy = self.add_model() File "/Users/salahazekour/Documents/Projects/RESIDE-master/online/online_reside.py", line 260, in add_model embed_init = getEmbeddings(model, self.wrd_list, self.p.embed_dim) File "./helper.py", line 30, in getEmbeddings for line in open(embed_loc): OSError: [Errno 9] Bad file descriptor

@svjan5 any suggestions on how to resolve this ?