as.matrix.textmodel_wordvector: Extract word vectors
Description
Extract word vectors from a textmodel_wordvector
or textmodel_docvector
object.
Usage
# S3 method for textmodel_wordvector
as.matrix(x, normalize = TRUE, ...)
Value
a matrix that contain the word vectors in rows.
Arguments
- x
a textmodel_wordvector
or textmodel_docvector
object.
- normalize
if TRUE
, returns normalized word vectors.
- ...
not used.