NaiveBayesClassifier can be used with FileDocument, StringDocument and TokenDocument. Instead of the simpleTokenize function, the token(sd) function is used.
NGramDocuments are currently not accepted and throw an error, as tokens can not be reconstructed.
NaiveBayesClassifier can be used with FileDocument, StringDocument and TokenDocument. Instead of the simpleTokenize function, the token(sd) function is used. NGramDocuments are currently not accepted and throw an error, as tokens can not be reconstructed.