giacbrd / ShallowLearn

An experiment about re-implementing supervised learning models based on shallow neural network approaches (e.g. fastText) with some additional exclusive features and nice API. Written in Python and fully compatible with Scikit-learn.
GNU Lesser General Public License v3.0
198 stars 30 forks source link

fastText.py model cannot be saved after de-serialization #7

Closed giacbrd closed 7 years ago

giacbrd commented 8 years ago

If I load a model, with the load function, it cannot be saved with save. It misses of the file it creates after initialization.

prakhar2b commented 7 years ago

Hi @giacbrd , I would like to work on this. Could you brief me regarding the current status of this bug ?

giacbrd commented 7 years ago

I haven't worked on this. It is more inherent to fastText.py. When you train a model from data with fastText.py, a model file is generated (it is a mandatory parameter of the train method!). When you load a model in memory from a pre-trained saved model nothing happens on disk, there is no way to write back the model if you change it

BUT

At the moment there is no way to do other operations on a loaded model, so this is not a real problem

I'm closing this issue because it is radically wrong!