dbacl

Bayesian text classifier using character n-gram digrams

brewmacoslinux
Try with needOr install directly
Source

About

Digramic Bayesian classifier

Commands

dbaclhypexlexicon

Examples

Train a classifier on spam emails$ dbacl -l spam -T email /path/to/spam/emails/*
Classify a new email and get probability scores$ dbacl -c spam /path/to/test/email.txt
Train multiple categories (spam and ham) then classify$ dbacl -l spam /path/to/spam/* && dbacl -l ham /path/to/ham/* && dbacl -c spam,ham /path/to/test/email.txt