ncbi-nlp / BioSentVec

BioWordVec & BioSentVec: pre-trained embeddings for biomedical words and sentences
Other
577 stars 99 forks source link

Context Vectors for words #22

Open adijad20 opened 4 years ago

adijad20 commented 4 years ago

Hello,

I wanted to use context embeddings for words to perform word similarity tasks. Is there a way to get the context vectors for words using the fastText model file.

Thanks, Aditya

qingyu-qc commented 4 years ago

Hi Aditya,

For word similarity tasks, essentially you could get vectors for each word, and then compare the similarity between their vectors. In that case, you can just load the model and get the vector by following the FAQ. If not, would you please give more detail to your question?

Thanks!