query_eta | R Documentation |
Actively query eta parameter.
query_eta(
eta,
class,
n_query,
handlabel = TRUE,
true_eta = NA,
keyword_select_scheme = "ratio",
val_scheme = "ratio",
verbose = FALSE,
dfm,
keywords_list = NA
)
eta |
Eta parameter from EM. |
class |
Class under consideration. |
n_query |
Number of words to query. |
handlabel |
Boolean indicating whether or not to label by hand. |
true_eta |
If handlabel is false and an eta matrix is provided to the true_eta param, values from the true_eta are used to determine whether or not a word should be flagged. |
keyword_select_scheme |
Keyword selection scheme. Either "ranked" for top eta keyword selection, "ratio" for top eta ratio keyword selection, or "combined" for log word count + log eta ratio selection. |
val_scheme |
If handlabel is TRUE and true_eta is provided, sets automated active updating scheme. Can be "ratio", in which case it decides based on the ratio of the true etas, or "ranked", in which case it decides based on the raw values of the true eta. |
verbose |
Boolean deciding whether to print for debug. |
dfm |
Quanteda document feature matrix. |
keywords_list |
Existing list of keywords. |
A vector of words.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.