get_keywords | R Documentation |
Gets keywords to feed to 'active_EM()', depending on on scheme type.
get_keywords(
docs,
dfm,
num_keywords = 10,
scheme = c("max_eta_raw", "max_eta_ratio"),
verbose = TRUE
)
docs |
Documents table, same as for 'active_EM()'. |
dfm |
Quanteda document-feature matrix matching 'docs'. |
num_keywords |
Number of keywords selected for each class. |
scheme |
Keyword selection scheme. "max_eta_raw" finds selects based on maximum eta values for positive and negative classes. "max_eta_ratio" selects based on ratio between eta values for positive and negative classes. |
verbose |
If 'TRUE', prints out keywords to console. |
List of length 2. First element is vector of keywords for negative class, second element is vector of keywords for positive class.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.