algoprog / Quin

An easy to use framework for large-scale fact-checking and question answering
MIT License
68 stars 7 forks source link

ModuleNotFoundError: No module named 'models.text_encoder' #12

Closed ashmalvayani closed 11 months ago

ashmalvayani commented 1 year ago

I have downloaded NLI model weights and Densed Encoder FC in the folder model/weights folder. After extracting the relevant folder in the model/weights directory, it looks like this: image

I also had to modify the following line otherwise it would not detect my model: self.text_embedding_model = SentenceTransformer('{}/encoder/qrbert-factcheck'.format(models_path), device=device)

Now, I am getting the following error: image

Can you help resolve this error and show exactly how to configure your codebase?

hedarko20 commented 11 months ago

You need to put the contents of the BERT folder into the encoder.