-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to save and load EntityRecognizer? #1174
Comments
BTW,
|
I just figured out how to load the model.
You can change the last line from I'm not an expert on Cython. Hope someone would help to fix. |
Saving and loading was definitely a weak point in the 1.x versions. It's much better in 2.x, so you might want to have a look at the alpha version of that. The stable release of 2.0 should be out in early August. For now: have a look here for an example of saving the entity recognizer: https://github.com/explosion/spaCy/blob/master/spacy/language.py#L355 The part that's confusing is that you need to save out the |
It is already fixed in v2? Because I used this sample to train NER, but when I used
|
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 my own EntityRecognizer, but EntityRecognizer does not provide
from_disk
andto_disk
method currently. How can I save my trained EntityRecognizer and reuse it in the future?The text was updated successfully, but these errors were encountered: