princeton-nlp / SimCSE

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

vocab_file none #143

Closed ustbliubo2014 closed 2 years ago

ustbliubo2014 commented 2 years ago

s/gpt2/tokenization_gpt2.py", line 179, in init with open(vocab_file, encoding="utf-8") as vocab_handle: TypeError: expected str, bytes or os.PathLike object, not NoneType I finetune model in my dataset

gaotianyu1350 commented 2 years ago

It seems that you didn't specify the pre-trained models? Can you share the script you were using?