Apply varieties of term frequency weightings to a dfm.
tf(x, scheme = c("count", "prop", "propmax", "boolean", "log", "augmented", "logave"), base = 10, K = 0.5)
object for which idf or tf-idf will be computed (a document-feature matrix)
divisor for the normalization of feature frequencies by document. Valid types include:
base for the logarithm when
the K for the augmentation when
A document feature matrix to which the weighting scheme has been applied.
tf(x, scheme = "prop") is equivalent to
Manning, C. D., Raghavan, P., & Schutze, H. (2008). Introduction to Information Retrieval. Cambridge University Press. https://en.wikipedia.org/wiki/Tf-idf#Term_frequency_2