JuliaText / TextAnalysis.jl

Julia package for text analysis
Other
374 stars 96 forks source link

Extend NaiveBayesClassifier to support Documents as input #152 #219

Closed KimBue closed 4 years ago

KimBue commented 4 years ago

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.