Siamese-LSTM icon indicating copy to clipboard operation
Siamese-LSTM copied to clipboard

training on new data

Open aimaaonline opened this issue 6 years ago • 0 comments

while trining on new data file i got this error.

File "", line 1, in debugfile('/home/seemab/seemab/Siamese-LSTM-master/trainQA.py', wdir='/home/seemab/seemab/Siamese-LSTM-master')

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 "", line 1, in

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 sls.train_lstm(train,66)

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

aimaaonline avatar Jun 11 '18 08:06 aimaaonline