floret-vecs as drop-in replacement in _sm models #10545
-
Just a brief question: is it possible to use one of the _sm pretrained models (for taggin, parsing, ner,..) and have the model yield floret vectors (which I have already trained and created a spacy model for)? Of course, I could use an extension to get/set the floret-vector if needed (with an "additional" spacy model with floret vecs only); or are the user_hooks a more apt tool for this? Anyway, I was just wondering if there is an easy way to create such a hybrid model. Any help is appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Sure, as long as the model doesn't currently have vectors you should be able to do: floret_nlp = spacy.load("floret_model")
nlp = spacy.load("en_core_web_sm")
nlp.vocab.vectors = floret_nlp.vocab.vectors |
Beta Was this translation helpful? Give feedback.
Sure, as long as the model doesn't currently have vectors you should be able to do: