clusters.Rd
Return all the clusters.
clusters(model) # S3 method for wordclusters clusters(model)
model | A model as returned by |
---|
# NOT RUN { # setup word2vec Julia dependency setup_word2vec() # sample corpus data("macbeth", package = "word2vec.r") # train model model_path <- word2clusters(macbeth, classes = 50L) # get word vectors model <- word_clusters(model_path) # get cluster clusters(model) # }