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, ...)

Arguments

x

a textmodel_wordvector or textmodel_docvector object.

...

not used

Value

a matrix that contain the word vectors in rows


wordvector documentation built on April 12, 2025, 2:23 a.m.