Skip to content
Discussion options

You must be logged in to vote

Sorry for the delayed reply on this, not sure what's up with the issue migration.

This is a design decision and not a bug. Basically the .vector api is only for static word vectors, not for contextual vectors like those generated by the Transformer. The Transformer models in spaCy don't include static word vectors because if you have Transformers you usually don't need them. If you need per-token representations, what you can do instead is use the data in doc._.trf_data, which contains tensors, wordpieces, and an alignment between spaCy tokens and the wordpieces. (I'm not sure there's a guide to this anywhere yet.)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@polm
Comment options

Answer selected by svlandeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / vectors Feature: Word vectors and similarity feat / transformer Feature: Transformer
1 participant