Skip to content
Discussion options

You must be logged in to vote

@svlandeg Ah! I know what the problem was -- For some reason, I put nlp.begin_training() before the lines that load vectors, which is why the model was not properly initialized. Once I moved nlp.begin_training() up, the model became properly initiated.

I have a follow up question. Is it possible to load vectors from another model? I tried the following:

    optimizer = nlp.begin_training()  
    nlp_lg = spacy.load("en_core_web_lg")           #load another model
    textcat.model.tok2vec.from_bytes(nlp_lg.vocab.vectors.to_bytes())

I got the following error:

Thanks for the help!

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by svlandeg
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
training Training and updating models feat / textcat Feature: Text Classifier
2 participants