word2phrase.Rd
Word2Phrases
word2phrase(train, output = NULL, min_count = 5L, threshold = 100L, debug = 2L)
train | Use text data from file to train the model. |
---|---|
output | Use file to save the resulting word vectors / word clusters. |
min_count | This will discard words that appear less than \(n\) times;
default is |
threshold | The numeric value represents the threshold for
forming the phrases (higher means less phrases); default |
debug | Set the debug mode (default = |
# NOT RUN { # setup word2vec Julia dependency setup_word2vec() # sample corpus data("macbeth", package = "word2vec.r") # train model model_path <- word2phrase(macbeth) # }