StringToWordVector处理生成的ARFF文件: weka.core.UnsupportedAttributeTypeException: weka.classifiers.bayes.NaiveBayesCapabilities.java:1023) at weka.core.Capabili
{NaiveBayes, NaiveBayesModel} // Split data into trainingval Array(training, test) = labeled.randomSplit(Array(0.6, 0.4))
val model = NaiveBayes.train(training