| as.textmodel_doc2vec | R Documentation |
Create a doc2vec model as weighted word vectors.
as.textmodel_doc2vec(x, model, compound = TRUE, group_data = FALSE, ...)
x |
a quanteda::tokens or quanteda::dfm object. |
model |
a textmodel_wordvector object. |
compound |
if |
group_data |
if |
... |
additional arguments passed to the underlying function. |
For Japanese or Chinese texts, model$concatenator must be empty ("").
The value is inherited from the tokens object on which the model was trained.
It triggers tokenization of words in model and compounding of characters in x
before creating document vectors.
Returns a textmodel_doc2vec object with the following elements:
values |
a list of matrices for word and document vectors. |
dim |
the size of the document vectors. |
concatenator |
the concatenator in |
docvars |
document variables copied from |
call |
the command used to execute the function. |
version |
the version of the wordvector package. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.