afe | R Documentation |
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)
x |
a dfm for features. |
y |
a dfm for labels. |
smooth |
a numeric value for smoothing to include all the features. |
Returns a single numeric value.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.