pickLabel: Pick the optimal label from candidate labels

Description Usage Arguments Details

View source: R/pickLabel.R

Description

Pick the optimal label from candidate labels

Usage

1
2
3
4
5
6
7
8
pickLabel(
  n,
  text.predict = NULL,
  text.name = "text",
  top1.name = "top1",
  labels.index = NULL,
  candidate.labels = NULL
)

Arguments

n

The number of desired tasks

text.predict

A data frame or matrix containing both the text and the indicator(s) of the model predicted topic(s).

text.name

variable name in 'text.predict' that indicates the text

top1.name

variable name in 'text.predict' that indicates the top1 model predicted topic

labels.index

The topic index in correspondence with the labels, e.g., c(10, 12, 15).

candidate.labels

A list of vectors containing the user-defined labels assigned to the topics, Must be in the same length and order with 'labels.index'.

Details

Users need to specify four plausible labels for each topic


Luwei-Ying/validateIt documentation built on May 12, 2021, 9:43 p.m.