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
Was it helpful?

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.

Here it is - beiyesi

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.

Try Mallet and LingPipe. they provide more models for the classifier.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top