dpa_d2v_preprocess: Prepare a doc2vec matrix using a pretrained word2vec model.

Description Usage Arguments

View source: R/dpa_d2v_preprocess.R

Description

Prepare a doc2vec matrix using a pretrained word2vec model.

Usage

1
dpa_d2v_preprocess(d2v.col, doc_id, text, as.df = T)

Arguments

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


global-trade-alert/dpaclassifier documentation built on Feb. 25, 2022, 3:24 a.m.