gensim.models.Word2Vec.create_binary_tree

Word2Vec.create_binary_tree()[source]

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