I'm using the SpaCy 3.0.1
together with the transformer model (en_core_web_trf
).
When I previously used SpaCy transformers it was possible to get the transformer vectors from a Token
or Span
.
In SpaCy 3 however it seems like you can only access the transformer vectors via the Doc
(doc._.trf_data
) without a proper alignment to the SpaCy tokens.
How can I get the alignment between SpaCy Tokens and Vectors/Wordpieces?
Or alternatively; is there some function that allows you to directly get the vectors for a Token
or Span
?