WING-NUS / Neural-ParsCit

Neuralized version of the Reference String Parser component of the ParsCit package.
http://wing.comp.nus.edu.sg/parsCit
Other
78 stars 17 forks source link

Problem while Train the Model #22

Closed rakeshkasinathan closed 5 years ago

rakeshkasinathan commented 5 years ago

When i try to train the model i am facing the below issue, please help me to sort.

root@02dae0d0158a:/usr/src# ./train.py --train train.txt --dev dev.txt --test test.txt [INFO] 2019-03-27 06:05:13,617: Model location: ./models/lower=False,zeros=False,char_dim=25,char_lstm_dim=25,char_bidirect=True,word_dim=100,word_lstm_dim=100,word_bidirect= True,pre_emb=,all_emb=False,cap_dim=0,crf=True,dropout=0.5,lrmethod=sgd-lr.005 Found 2 unique words (8 in total) Found 8 unique characters Found 2 unique named entity tags [INFO] 2019-03-27 06:05:13,623: 8 / 0 / 0 sentences in train / dev / test. [INFO] 2019-03-27 06:05:13,623: Saving the mappings to disk... Traceback (most recent call last): File "./train.py", line 200, in f_train, f_eval = model.build(**parameters) File "/usr/src/model.py", line 177, in build pretrained = self.load_word_embeddings(pre_emb) File "/usr/src/model.py", line 425, in load_word_embeddings raise IOError("{embeddings} cannot be found.".format(embeddings=embeddings)) IOError: cannot be found.

kylase commented 5 years ago

Have you downloaded the word embeddings?

rakeshkasinathan commented 5 years ago

Yes i have downloaded and extract word embeddings.

kylase commented 5 years ago

You need to provide --pre_emb which is your location of the word embeddings.