Naive Bayes classifier for text classification.

init_naive_classifer(labels)

# S3 method for factor
init_naive_classifer(labels)

Arguments

labels

A vector of labels (factor).

Examples

# NOT RUN {
init_textanalysis()
classes <- factor(c("A", "B"))
model <- init_naive_classifer(classes)
# }