This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
Extracting spanBERT embeddings #5416
Unanswered
alicesaunders
asked this question in
Q&A
Replies: 1 comment 2 replies
-
This is certainly possible. Are you just trying to extract the corresponding weights from the embedding layer, or are you trying to get the contextual hidden states of each token within a sentence that you pass through your model? The former would be pretty easy, you could just pull those weights out the state dictionary. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to extract word embeddings from a model that I’ve trained myself that can then be used in further anaysis? E.g bias analysis on the embeddings with PCA and the cosine similarity.
thank you!
Beta Was this translation helpful? Give feedback.
All reactions