mirror of https://github.com/carlostrub/sisyphus
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
365 B
Go
18 lines
365 B
Go
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
|
|
}
|