Description Usage Arguments See Also Examples
Generate a word clusters from the model file.
1 2 3 4 | word_clusters(file)
## S3 method for class 'word2clusters'
word_clusters(file)
|
file |
Path to model, output of |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## 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)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.