Compute entropies of documents or features
Compute entropies of documents or features
textstat_entropy(x, margin = c("documents", "features"), base = 2)
x |
a |
margin |
character indicating for which margin to compute entropy |
base |
base for logarithm function |
a data.frame of entropies for the given document or feature
library("quanteda") textstat_entropy(data_dfm_lbgexample) textstat_entropy(data_dfm_lbgexample, "features")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.