Learn R Programming

wordvector (version 0.3.0)

textmodel_doc2vec: Create distributed representation of documents

Description

Create distributed representation of documents as weighted word vectors.

Usage

textmodel_doc2vec(x, model, group_data = FALSE)

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.

Arguments

x

a quanteda::tokens object.

model

a textmodel_wordvector object.

group_data

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