transform_dfm_boe | R Documentation |
This function generates document-feature matrix (dfm) from a multilingual corpus.
transform_dfm_boe(
corpus,
emb = NULL,
.progress = TRUE,
mode = "bert",
noise = FALSE,
remove_stopwords = TRUE,
bert_sentence_tokenization = TRUE,
envname = "rectr_condaenv",
path = "./"
)
corpus |
a multilingual corpus generated by create_corpus() |
emb |
a list of word embeddings loaded from read_ft() |
.progress |
boolean, displaying a progress bar or not |
mode |
character, either 'bert' or 'fasttext' |
noise |
boolean, printing noise so that you know the transmation is progressing |
remove_stopwords, |
boolean, whether or not to remove stopwords |
a rectr_dfm object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.