Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. KeyError: "word 'sso' not in vocabulary"
  2.  
  3. import gensim
  4. model = gensim.models.KeyedVectors.load_word2vec_format('D:/NLP JIRA/GoogleNews-vectors-negative300.bin', binary=True)
  5. print(model)
  6. words = list(model.wv.vocab)
  7. print(words)
  8. print(model[words])
  9. for words in op:
  10. print(words)
  11. obj = model[words]
  12. print(obj)
  13.  
  14. op = [['observations', 'sso', 'clienttool', 'testing'], ['logouri', 'column', 'clients', 'table', 'accepting', 'values', 'null']]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement