gensim.models.Doc2Vec.create_binary_tree

Doc2Vec.create_binary_tree()

Create a binary Huffman tree using stored vocabulary word counts. Frequent words will have shorter binary codes. Called internally from build_vocab().