princeton-nlp / SimCSE

[EMNLP 2021] SimCSE: Simple Contrastive Learning of Sentence Embeddings https://arxiv.org/abs/2104.08821
MIT License
3.37k stars 509 forks source link

No such file or directory: #105

Closed SumNeuron closed 2 years ago

SumNeuron commented 2 years ago
python SimCSE/evaluation.py  \
    --model_name_or_path princeton-nlp/sup-simcse-bert-base-uncased  \
    --pooler cls \
    --task_set sts \
    --mode test

yields

File "/Users/sumner/miniforge3/lib/python3.9/site-packages/senteval/sts.py", line 33, in loadFile
    io.open(fpath + '/STS.input.%s.txt' % dataset,
FileNotFoundError: [Errno 2] No such file or directory: './SentEval/data/downstream/STS/STS12-en-test/STS.input.MSRpar.txt'
gaotianyu1350 commented 2 years ago

Can you check whether you have downloaded the SentEval test data? Otherwise, it may be caused by a data corruption issue and you can try to re-download the data.

SumNeuron commented 2 years ago

@gaotianyu1350 I have download it via the script. I removed everything (cloned repo inclusive) and redownloaded and ran the script again. Same issue

gaotianyu1350 commented 2 years ago

Hi,

It seems that you have installed your own version of senteval instead of using the senteval we provided, and that confused the paths. Can you uninstall senteval from your environment and try again?