query_label: Label Query

query_labelR Documentation

Label Query

Description

Queries documents for classification by oracle.

Usage

query_label(
  docs,
  label_id_vec,
  n_class,
  labels,
  doc_name,
  index_name,
  labels_name = NULL,
  active_iter = NULL,
  maxIter = NULL,
  handlabel = TRUE,
  metadata_vars = NA,
  already_selected = NA,
  param_to_save = NA
)

Arguments

docs

[matrix] Matrix of labeled and/or unlabeled documents.

label_id_vec

[vector] Matrix of documents to be labeled.

n_class

[numeric] Number of classes to be considered.

labels

[vector] Vector of character strings indicating classification options.

doc_name

[character] Character string indicating the variable in docs that denotes the text of the documents to be classified.

index_name

[character] Character string indicating the variable in 'docs' that denotes the index value of the document to be classified.

labels_name

[character] Character string indicating the variable in docs that denotes the already known labels of the documents. By default, value is set to NULL.

active_iter

[numeric] Numeric value denoting which iteration of the active learning cycle the algorithm is in. Appears as header information to the user-labeling process.

maxIter

[numeric] Numeric value denoting the maximum number of active learning iterations.

handlabel

[logical] Boolean logical value indicating whether to initiate user-input script. If set to FALSE, and if labels_name is provided, the script queries the document label directly from the column denoted by labels_name.

param_to_save

[list] List of variables to save if user chooses to.

Value

[matrix] or [list] If finishes to completion, structured matrix of labeled and unlabeled documents, updated with labels for the documents in 'label_id_vec'. Otherwise, a list of already hand labeled values to save.


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