Closed simon-larsson closed 5 years ago
Hey,
This was a bad regression introduced in v2.1, that we fixed quickly after release. It looks like you happened to land on one of the intermediate versions. If you upgrade to v2.1.3 it should be resolved. Please let us know if it's not fixed in the new version --- we definitely want to make sure this is resolved.
(See also #3433, #3458. Resolved by d9a07a7f6ee8c)
Can confirm that the model is working as expected after being saved and loaded to/from disk with both pickle and built in functions after upgrading to v2.1.3. Thank you and sorry for the duplicate!
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
I have trained a custom NER model. When I save it and load it from disc it makes different predictions than if I keep it in RAM.
Everything seems to be loaded correctly, it gets the pipeline and the correct entity. It is just when it comes to making predictions that it seems to behave as a totally untrained model.
Even stranger is that if I perform training on a loaded model it will start training from where the stored model was and will perform correct predictions again.
How to reproduce the behaviour
Which for me gives the output:
Your Environment