TextClassifierWidget: Display text classifier output as an 'htmlwidget'

View source: R/textclassifierwidget.R

TextClassifierWidgetR Documentation

Display text classifier output as an htmlwidget

Description

Creates a htmlwidget summary of information for a text classifier output from flipTextAnalysis.

Usage

TextClassifierWidget(
  observed.counts,
  weighted.sizes,
  category.accuracy,
  examples,
  cv.metrics,
  text.raw.by.categorization,
  missing,
  title,
  footer
)

Arguments

observed.counts

Numeric vector of counts of the observed existing categories

weighted.sizes

Numeric vector of weighted counts of the predicted values

category.accuracy

Numeric vector of accuracy over training sample.

examples

Examples for each category.

cv.metrics

Numeric matrix of the performance metrics on the cross validation data.

text.raw.by.categorization

A list containing the raw text for each category.

missing

Logical vector indicating which cases are missing.

title

The title to show at the top.

footer

Footer to show containing sample information.

Value

An htmlwidget containing tables showing the output from an automatic text categorization.

See Also

Box


Displayr/flipFormat documentation built on Feb. 26, 2024, 12:37 a.m.