gensim.models.Doc2Vec.sort_vocab

Doc2Vec.sort_vocab()

Sort the vocabulary so the most frequent words have the lowest indexes.