spacy ver 3.2.2: How to forcefully save a SpanCat Model #11367
Replies: 2 comments 6 replies
-
If spaCy is interrupted in training, it will save the last version of the model. If you aren't getting a model at all it sounds like your model is failing in initialization - is that the case? (I'm not sure what you mean by "active learning" in this context.) If that's what's happening, it sounds like the best thing is for you to handle training failures outside of spaCy, such as by returning a default value or writing your own placeholder If that's not what was happening, could you share the full output of training with stack trace so we can understand what's going on better? |
Beta Was this translation helpful? Give feedback.
-
I think it could be what you said that it was failing in initialization. Could you explain a bit more regarding what could cause failing in initialization? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
My spacy version is 3.2.2. I encountered an issue during the training of a Span Catergorizer Model with 21,000 records using CLI. Since the data was not clean, there was no active learning in the model.
The issue is that in this situation, no model was saved. Due to this, an error was displayed in my code when trying to retrieve the scores from model-best/meta.json file, which I want to avoid at all costs.
I wanted to save a model even if there was no active learning involved in it. The scores could show 0 precision, recall and f-score but it still should be present.
How could I do this?
Beta Was this translation helpful? Give feedback.
All reactions