facebookresearch / SentEval

A python tool for evaluating the quality of sentence embeddings.
Other
2.09k stars 309 forks source link

Using senteval on already generated embeddings #82

Open deven367 opened 3 years ago

deven367 commented 3 years ago

Hello,

I am trying to run senteval on embeddings I have generated already. I have the sentence embeddings in np arrays. Is there a way so that I can simply check how well do those embeddings work on the transfer tasks?

Thanks!

BrunoKreiner commented 1 year ago

i got the same problem

JosephGatto commented 1 year ago

@deven367 @BrunoKreiner sort of hacky but you could do a dictionary lookup inside of the batcher. So build some dictionary D where D[sentence] = embedding, then open that in your SentEval script and return those embeddings in the batcher.