I am using word2vec
, wiki corpus I trained, what can I do if the word I input not in vocabulary in word2vec
?
Test it a bit:
model = word2vec.Word2Vec.load('model/' + 'wiki_chinese_word2vec.model')
model['boom']
Error:
KeyError("word '%s' not in vocabulary" % word)