Which Python Bayesian text classification modules are similar to dbacl?
-
22-08-2019 - |
Question
A quick Google search reveals that there are a good number of Bayesian classifiers implemented as Python modules. If I want wrapped, high-level functionality similar to dbacl, which of those modules is right for me?
Training
% dbacl -l one sample1.txt
% dbacl -l two sample2.txt
Classification
% dbacl -c one -c two sample3.txt -v
one
Solution
I think you'll find the nltk helpful. Specifically, the classify module.
OTHER TIPS
It maybe this can be useful: http://www.divmod.org/trac/wiki/DivmodReverend
Noticing this question. I put my implementation of a naive Bayesian classifier on gitHub.
It still needs a lot of improvement. Any help is appreciated.
If you're trying to detect language this works fine even with pretty short texts.
The api is pretty close to yours but I don't know if it is called a Bayesian classifier.