Train a Laplace-smoothed Multinomial Naive Bayes text classifier and predict labels for test documents.