word2vec.WordClusters
¶
Methods¶
__init__ (vocab, clusters) |
|
from_text (fname) |
|
get_cluster (word) |
Returns the cluster number for a word in the vocabulary |
get_words_on_cluster (cluster) |
|
ix (word) |
Returns the index on self.vocab and self.clusters for word |