read_word2vec | R Documentation |
This function reads word2vec text format and return a dense matrix that can be used by this package. The file can have or have not the "verification line", i.e. the first line contains the dimensionality of the matrix. If the verification line exists, the function will check the returned matrix for correctness.
read_word2vec(x)
x |
path to your text file |
a dense matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.