View source: R/dpa_d2v_preprocess.R
Prepare a doc2vec matrix using a pretrained word2vec model.
1 | dpa_d2v_preprocess(d2v.col, doc_id, text, as.df = T)
|
doc_id |
the doc ids, probably the BID with Bastiat |
text |
character vector of words separated by spaces |
as.df |
return as a dataframe? if F, returns a matrix |
model.w2v |
pretrained word embeddings |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.