Finding the distance between 'Doctag' and 'infer_vector' with Gensim Doc2Vec?
问题 Using Gensim's Doc2Vec how would I find the distance between a Doctag and an infer_vector() ? Many thanks 回答1: Doctag is the internal name for the keys to doc-vectors. The result of an infer_vector() operation is a vector. So as you've literally asked, these aren't comparable. You could ask a model for a known doc-vector, by its doc-tag key that was supplied during training, via model.docvecs[doctag] . That would be comparable to the result of an infer_vector() call. With two vectors in hand,