Reputation: 1711
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
Upvotes: 10
Views: 5192
Reputation: 71
Try Mallet and LingPipe. they provide more models for the classifier.
Upvotes: -1
Reputation: 15968
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.
Upvotes: 0
Reputation: 12962
I think you'll find the nltk helpful. Specifically, the classify module.
Upvotes: 9