The Naive Bayes Text Classifier is a variant of the Naive Bayes classification algorithm that is designed specifically for document classification.
For information about the Naive Bayes classification algorithm and functions, see the chapter Naive Bayes.
Naive Bayes Text Classifier runs these functions:
- NaiveBayesTextClassifierTrainer, which generates a model from training data
- NaiveBayesTextClassifierPredict, which uses the model to make predictions about testing data
The preceding functions process tokens, not documents. Therefore, internal functions translate the training and input documents to tokens and then input the tokens to the functions.