n-grams, Naive Bayes e cross-validation