Siamese-LSTM
Siamese-LSTM copied to clipboard
training on new data
while trining on new data file i got this error.
File "
File "/home/seemab/.local/lib/python2.7/site-packages/spyder/utils/site/sitecustomize.py", line 728, in debugfile debugger.run("runfile(%r, args=%r, wdir=%r)" % (filename, args, wdir))
File "/home/seemab/anaconda2/lib/python2.7/bdb.py", line 400, in run exec cmd in globals, locals
File "
File "/home/seemab/.local/lib/python2.7/site-packages/spyder/utils/site/sitecustomize.py", line 705, in runfile execfile(filename, namespace)
File "/home/seemab/.local/lib/python2.7/site-packages/spyder/utils/site/sitecustomize.py", line 94, in execfile builtins.execfile(filename, *where)
File "/home/seemab/seemab/Siamese-LSTM-master/trainQA.py", line 17, in
File "lstmQA.py", line 350, in train_lstm ls2.append(embed(x2[j]))
File "sentencesQA.py", line 78, in embed dmtr[count]=model[stmx[count]]
File "/home/seemab/anaconda2/lib/python2.7/site-packages/gensim/models/keyedvectors.py", line 169, in getitem return self.get_vector(entities)
File "/home/seemab/anaconda2/lib/python2.7/site-packages/gensim/models/keyedvectors.py", line 277, in get_vector return self.word_vec(word)
File "/home/seemab/anaconda2/lib/python2.7/site-packages/gensim/models/keyedvectors.py", line 274, in word_vec raise KeyError("word '%s' not in vocabulary" % word)
KeyError: "word 'functions,' not in vocabulary"
this error is raised for many different words.
KeyError: "word 'given,' not in vocabulary"
how to deal with it.? Kindly reply