Fix word tokenization in NaiveBayesAnalyzer