I need to remove an invalid word from the vocab of a "gensim.models.keyedvectors.Word2VecKeyedVectors".
I tried to remove it using del model.vocab[word]
, if I print the model.vocab
the word disappeared, but when I run model.most_similar
using other words the word that I deleted is still appearing as similar.
So how can I delete a word from model.vocab
in a way that affect the model.most_similar
to not bring it?