shixzie/nlp

How I can save/load the learned things?

rkmax opened this issue · 4 comments

rkmax commented

Assuming that I can have many models and each one with a lot of samples, how I can store the learned things, so I can store it in some file and later on i can read from the file?

Hey! To answer your question, currently you can not save trained models. This was a project of mine to try and get involved with machine learning, but as it turned out, I just ended up with something that looks cool at first sight but then you realize it's just a fancy and maybe more performant regex. I say maybe because no benchmarks have been done. Also, the only process that can be persisted to a file (save training) is the training of the Naive Bayes algorithm used to distinguish between models. Every expression would still have to iterate through all samples to see which sample fits best the expression.

rkmax commented

Thanks a lot for the clarification

@rkmax сan you try using my fork https://github.com/itrabbit/nlp.
I added the Export/Import methods.

rkmax commented

thx @legion-zver I'll try to give a try next week