RyanWangZf / Trial2Vec

Findings of EMNLP'22 | Trial2Vec: Zero-Shot Clinical Trial Document Similarity Search using Self-Supervision
MIT License
19 stars 4 forks source link

[Question] How to load Trial2Vec as HuggingFaceEmbeddings? #6

Open JPonsa opened 4 months ago

JPonsa commented 4 months ago

What is the appropriate way to load Trial2Vec as HF embeddings? I have tried

from langchain_community.embeddings import HuggingFaceEmbeddings
trial2vect = HuggingFaceEmbeddings(model_name="./trial_search/pretrained_trial2vec")

But does not work.