Skip to content
Discussion options

You must be logged in to vote

I'm going to copy your comment from Stack Overflow that explains why you are trying to do this:

Because I'm trying to create my own NLP pipeline for education purposes.

If that's the case I would recommend the dev docs for Language and the load_model_from_path function, which uses load_model_from_config to prep the Language object and Language.from_disk to actually load all the components.

To be clear for anyone finding this later, it is not expected or recommended you write your own code to deserialize things like this. Normally you should just be able to use spacy.load.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by khoilr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / serialize Feature: Serialization, saving and loading
2 participants