View 20NewsgroupsNaiveBayes.R
library(tm) #Text Mining | |
library(klaR) #Naive Bayes | |
library(parallel) #RCore parallel functions | |
library(data.table) #Improved version of data.frame with optimized helper methods like fread | |
library(caret) #Help us analyze the results | |
library(ggplot2) #Grammer for Graphics, very popular package | |
library(profr) | |
#----- | |
# Data: Download 20 newsgroup dataset here: http://www.cs.cmu.edu/afs/cs.cmu.edu/project/theo-20/www/data/news20.html |