| as.matrix.textmodel_doc2vec | R Documentation |
Extract word or document vectors from a textmodel_word2vec or textmodel_doc2vec object.
## S3 method for class 'textmodel_doc2vec'
as.matrix(x, normalize = TRUE, layer = c("documents", "words"), ...)
## S3 method for class 'textmodel_word2vec'
as.matrix(x, normalize = TRUE, layer = "words", ...)
x |
a |
normalize |
if |
layer |
the layer from which the vectors are extracted. |
... |
not used. |
a matrix that contain the word or document vectors in rows.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.