Description Usage Arguments Examples
Word2Phrases
1 2 | 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 = |
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# setup word2vec Julia dependency
setup_word2vec()
# sample corpus
data("macbeth", package = "word2vec.r")
# train model
model_path <- word2phrase(macbeth)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.