dtm_get_idf(dtm, log_scale = log, smooth_idf = T)
dgCMatrix
- Document-Term matrix.logical
smooth idf weights by adding one to document frequencies,
as if an extra document was seen containing every term in the collection exactly once.
Prevents zero divisions.ddiMatrix
idf scaling diagonal sparse matrix.