as.matrix.textmodel_wordvector: Extract word vectors

View source: R/word2vec.R

as.matrix.textmodel_wordvectorR 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 textmodel_wordvector or textmodel_docvector object.

normalize

if TRUE, returns normalized word vectors.

...

not used.

Value

a matrix that contain the word vectors in rows.


wordvector documentation built on June 20, 2025, 9:08 a.m.