Where are static vectors used during training? #7656
-
Hello spaCy community! I would love some more info on some config options regarding static vectors. If for example I use the following under [initialize] section:
and under "tok2vec" settings I use:
where are these vectors applied/used? Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Good question. The interaction between these is a little subtle. The The If you set Also be sure to check the docs on static vectors. |
Beta Was this translation helpful? Give feedback.
Good question. The interaction between these is a little subtle.
The
initialize
block is used when creating the pipeline for training. If you specify a model there, those vectors will be loaded into the pipeline, just like the vectors in the medium and large models. They will also be available in the final pipeline if you want to do something with them directly.The
tok2vec
option determines whether tok2vec should use those same vectors when creating its embeddings. The tok2vec layer, and not the original embeddings, will be used for downstream pipeline components. If you've loaded the vectors you'd typically want to do this.If you set
include_static_vectors
to be True but don't have any…