R/topic_modelling.R
Uses threshold to select the top terms based on tf-idf.
FilterDFMByTFIDF(dfm_quanteda, threshold)
| dfm_quanteda | A dfm as defined by the quanteda package |
|---|---|
| threshold | The threshold to filter terms |
A dfm with filtered terms.