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

View source: R/bt_d2v_col_preprocess.R

bt_d2v_col_preprocessR Documentation

Prepare a doc2vec matrix using a pretrained word2vec model.

Description

To be used on text data from a particular feature column (e.g. title, description or AA)

Usage

bt_d2v_col_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/gtabastiat documentation built on June 4, 2023, 6:40 a.m.