Versions in this module Expand all Collapse all v1 v1.0.1 Jul 23, 2021 v1.0.0 Jul 21, 2021 Changes in this version + type Bayes struct + func New() *Bayes + func NewFromModel(model Model) *Bayes + func NewFromReader(r io.Reader) (*Bayes, error) + func (b *Bayes) AddWords(cat string, words map[string]float64) + func (b *Bayes) Classify(words []string) (string, float64) + func (b *Bayes) GetCategory(cat string) *Probe + func (b *Bayes) GetSum() float64 + func (b *Bayes) Iter() <-chan *Probe + func (b *Bayes) Len() int + func (b *Bayes) Save(w io.Writer) error + func (b *Bayes) SaveFile(loc string) error + func (b *Bayes) ToModel() Model + type Model struct + Data map[string]Probe + Total float64 + type Probe struct + Category string + Data map[string]float64 + None float64 + Total float64 + func NewProbe() *Probe + func (a *Probe) Add(key string, value float64) + func (a *Probe) AddWords(words map[string]float64) + func (a *Probe) Exists(key string) bool + func (a *Probe) Freq(key string) float64 + func (a *Probe) Get(key string) float64 + func (a *Probe) GetSum() float64