query_eta: Query Eta

query_etaR Documentation

Query Eta

Description

Actively query eta parameter.

Usage

query_eta(
  eta,
  class,
  n_query,
  handlabel = TRUE,
  true_eta = NA,
  keyword_select_scheme = "ratio",
  val_scheme = "ratio",
  verbose = FALSE,
  dfm,
  keywords_list = NA
)

Arguments

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.

Value

A vector of words.


activetext/activeR documentation built on May 31, 2024, 10:21 a.m.