Create distributed representation of documents as weighted word vectors.
textmodel_doc2vec(x, model, group_data = FALSE)Returns a textmodel_docvector object with the following elements:
a matrix for document vectors.
the size of the document vectors.
the concatenator in x.
document variables compied from x.
the command used to execute the function.
the version of the wordvector package.
a quanteda::tokens object.
a textmodel_wordvector object.
if TRUE, apply dfm_group(x) before creating document vectors.