NaiveBayesClassifier A Xcode project read 3000 documents in training.txt which belong to 15 authors classify documents in testing.txt accuracy over 82% time around 40 seconds