nlp icon indicating copy to clipboard operation
nlp copied to clipboard

How I can save/load the learned things?

Open rkmax opened this issue 6 years ago • 4 comments

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?

rkmax avatar Feb 05 '18 02:02 rkmax

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.

shixzie avatar Feb 08 '18 01:02 shixzie

Thanks a lot for the clarification

rkmax avatar Feb 08 '18 03:02 rkmax

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

legion-zver avatar May 19 '18 20:05 legion-zver

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

rkmax avatar May 20 '18 18:05 rkmax