vector-space

How do I subtract and add vectors with gensim KeyedVectors?

How do I subtract and add vectors with gensim KeyedVectors? Question: I need to add and subtract word vectors, for a project in which I use gensim.models.KeyedVectors (from the word2vec-google-news-300 model) Unfortunately, I’ve tried but can’t manage to do it correctly. Let’s look at the poular example queen ~= king – man + woman. When …

Total answers: 1