word_vectors.Rd
Generate a word vectors from the model file.
word_vectors(file) # S3 method for word2vec word_vectors(file)
file | Path to model, output of |
---|
# NOT RUN { # setup word2vec Julia dependency setup_word2vec() # sample corpus data("macbeth", package = "word2vec.r") # train model model_path <- word2vec(macbeth) # get word vectors model <- word_vectors(model_path) # }