afe() computes Average Feature Entropy (AFE), which measures randomness of
occurrences of features in labelled documents (Watanabe & Zhou, 2020). In
creating seed dictionaries, AFE can be used to avoid adding seed words that would
decrease classification accuracy.
afe(x, y, smooth = 1)Returns a single numeric value.
a dfm for features.
a dfm for labels.
a numeric value for smoothing to include all the features.
Watanabe, Kohei & Zhou, Yuan (2020). "Theory-Driven Analysis of Large Corpora: Semisupervised Topic Classification of the UN Speeches". doi:10.1177/0894439320907027. Social Science Computer Review.