Skip to content
Discussion options

You must be logged in to vote

Models trained in the same major version (like v3) should be able to be loaded in later versions, but because there can be minor inconsistencies, we recommend thorough testing and, if possible, retraining.

You appear to be having a separate issue related to pickle serialization. While pickling should work with models, we recommend the native saving/loading features in most circumstances. So normally you should do this:

# where you create the model
nlp.to_disk("my_model")
# where you load the model
nlp = spacy.load("my_model")

I'm not sure if the pickle problem is due to changed versions in spaCy or what - I haven't seen that error before, and in fact Googling it turns up this issue, so i…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@devendrasoni18
Comment options

@polm
Comment options

Answer selected by devendrasoni18
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
windows Issues related to Windows feat / serialize Feature: Serialization, saving and loading
2 participants
Converted from issue

This discussion was converted from issue #12062 on January 10, 2023 06:51.