YJiangcm / PromCSE

Code for "Improved Universal Sentence Embeddings with Prompt-based Contrastive Learning and Energy-based Learning (EMNLP 2022)"
https://arxiv.org/abs/2203.06875v2
134 stars 16 forks source link

AttributeError #1

Closed ShaobinChen-AH closed 2 years ago

ShaobinChen-AH commented 2 years ago

Hi! when I reproduced your results by running ''sh run_unsup_example.sh", I got the following error:

AttributeError: module 'senteval' has no attribute 'engine'.

And I did not find any exited solutions using Google. How can I solve this problem? Could you give me some advice? Thanks a lot.

YJiangcm commented 2 years ago

Thanks for pointing out the bug! The reason is that I forgot to upload the "init.py" file into the Senteval/senteval/ folder. I have added the missing file. Now the code should work well.