epfml / sent2vec

General purpose unsupervised sentence representations
Other
1.19k stars 256 forks source link

Process dies on load_model when model file is not found! #95

Closed 0x01h closed 4 years ago

0x01h commented 4 years ago

Hi,

model = sent2vec.Sent2vecModel()
model.load_model('sexy_results.bin')

The code above kills the Python process without throwing error like FileNotFound, if model file not exists in the underlying directory. Could you please handle these kind of cases?

Thank you!

guptaprkhr commented 4 years ago

Hello, We are looking into it and will add a error code in the next major update.