fragment-based-dgm
fragment-based-dgm copied to clipboard
FileNotFoundError: [Errno 2] No such file or directory: 'RUNS/2022-08-02@23:02:24-user-NF5468M6-ZINC/config/vocab.pkl'
hi, There is a bug when i run this line 'python manage.py train --dataset <DATASET_NAME>'. Training and clustering embeddings... Traceback (most recent call last): File "/home/zhyl_lbw/fragment-based-dgm-master/learner/dataset.py", line 77, in get_vocab self.vocab = Vocab.load(self.config) File "/home/zhyl_lbw/fragment-based-dgm-master/learner/skipgram.py", line 22, in load return load_pickle(path) File "/home/zhyl_lbw/fragment-based-dgm-master/utils/filesystem.py", line 8, in load_pickle return pkl.load(open(path, "rb")) FileNotFoundError: [Errno 2] No such file or directory: 'RUNS/2022-08-02@23:02:24-user-NF5468M6-ZINC/config/vocab.pkl'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/zhyl_lbw/fragment-based-dgm-master/manage.py", line 63, in
This seems to be due to not creating 'vocab.pkl'. could you help me fix it? thank you!
Hi and thanks for bringing the issue up, it's probably because you are using an updated version of the gensim library with respect to the one used here. I have updated the code, pull the repo again, and let me know if it works now.
Hi, I have the same issue. I have gensim 4.2.0 installed. Here is the error message encountered while training: Training and clustering embeddings... Traceback (most recent call last): File "/home/Desktop/DDDD/fragment-based-dgm/learner/dataset.py", line 77, in get_vocab self.vocab = Vocab.load(self.config) File "/home/Desktop/DDDD/fragment-based-dgm/learner/skipgram.py", line 22, in load return load_pickle(path) File "/home/Desktop/DDDD/fragment-based-dgm/utils/filesystem.py", line 8, in load_pickle return pkl.load(open(path, "rb")) FileNotFoundError: [Errno 2] No such file or directory: 'RUNS/2022-11-07@11:17:21-user-PCBA/config/vocab.pkl'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/Desktop/DDDD/fragment-based-dgm/manage.py", line 59, in
It seems that many Word2Vec arguments have changed their name since the time I coded this. 'iter' is now changed to 'epochs'. It should work again, pull the repo and try again. Thanks for bringing this up!