mirror of https://github.com/carlostrub/sisyphus
move filter stuff into separate source file
parent
eb24f37ae7
commit
2d39b89243
@ -0,0 +1,17 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/jbrukh/bayesian"
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
// good is the class of good mails that are not supposed to be Spam
|
||||||
|
good bayesian.Class = "Good"
|
||||||
|
// junk is the class of Spam mails
|
||||||
|
junk bayesian.Class = "Junk"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Classifiers contains the classifiers for mail subjects and bodies
|
||||||
|
type Classifiers struct {
|
||||||
|
Subject, Body *bayesian.Classifier
|
||||||
|
}
|
Loading…
Reference in New Issue