textmodel_doc2vec: Create distributed representation of documents

View source: R/doc2vec.R

textmodel_doc2vecR Documentation

Create distributed representation of documents

Description

Create distributed representation of documents as weighted word vectors.

Usage

textmodel_doc2vec(x, model, group_data = FALSE)

Arguments

x

a quanteda::tokens object.

model

a textmodel_wordvector object.

group_data

if TRUE, apply dfm_group(x) before creating document vectors.

Value

Returns a textmodel_docvector object with the following elements:

values

a matrix for document vectors.

dim

the size of the document vectors.

concatenator

the concatenator in x.

docvars

document variables compied from x.

call

the command used to execute the function.

version

the version of the wordvector package.


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