Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

training on new data #20

Open
aimaaonline opened this issue Jun 11, 2018 · 0 comments
Open

training on new data #20

aimaaonline opened this issue Jun 11, 2018 · 0 comments

Comments

@aimaaonline
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant