gensim.models.Word2Vec.sort_vocab

Word2Vec.sort_vocab()[source]

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