pickLabel | R Documentation |
Pick the optimal label from candidate labels
pickLabel(
n,
text.predict = NULL,
text.name = "text",
top1.name = "top1",
labels.index = NULL,
candidate.labels = NULL
)
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'. |
Users need to specify four plausible labels for each topic
A matrix with n rows and 6 columns (topic, doc, opt1, opt2, opt3, optcrt) where optcrt is the correct label that was picked.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.