as.matrix.textmodel_wordvector {wordvector} | R Documentation |
Extract word vectors
Description
Extract word vectors from a textmodel_wordvector
or textmodel_docvector
object.
Usage
## S3 method for class 'textmodel_wordvector'
as.matrix(x, normalize = TRUE, ...)
Arguments
x |
a |
normalize |
if |
... |
not used. |
Value
a matrix that contain the word vectors in rows.
[Package wordvector version 0.5.1 Index]