You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there some programmatic way to get the dimension of the returned embeddings? For example, I can do
from elmoformanylangs import Embedder
elmo = Embedder("manyelmo/english")
emb_dim = elmo.sents2elmo([["Test"]])[0].shape[1]
That's rather unsatisfying, though. I could read the last entry in config.token_embedder.filters, or the entry with the highest first index, but I'm not 100% sure that is correct. Is it correct? If so, I can submit a patch which does that as a utility method in the Embedding class.
Thanks!
The text was updated successfully, but these errors were encountered:
Is there some programmatic way to get the dimension of the returned embeddings? For example, I can do
That's rather unsatisfying, though. I could read the last entry in config.token_embedder.filters, or the entry with the highest first index, but I'm not 100% sure that is correct. Is it correct? If so, I can submit a patch which does that as a utility method in the Embedding class.
Thanks!
The text was updated successfully, but these errors were encountered: