Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LearnProgress ¶
type Learner ¶
type Learner struct { *scorer.Vectoriser // contains filtered or unexported fields }
func (*Learner) Learn ¶
func (learner *Learner) Learn(learningData []*spell.LearningTerm) spell.ScoreModel
func (*Learner) LearnProgress ¶
type Scorer ¶
type Scorer struct { Weights *scorer.Vector *scorer.Vectoriser }
func (*Scorer) Compare ¶
func (scoring *Scorer) Compare(a *spell.Suggestion, b *spell.Suggestion) float64
func (*Scorer) GetVectorSystem ¶
func (scoring *Scorer) GetVectorSystem(a *spell.LearningTerm) *VectorSystem
type VectorSystem ¶
func InitVectorSystem ¶
func InitVectorSystem() *VectorSystem
func (*VectorSystem) Add ¶
func (system *VectorSystem) Add(inequality *scorer.Vector)
func (*VectorSystem) Dump ¶
func (system *VectorSystem) Dump()
func (*VectorSystem) IsSatisfied ¶
func (system *VectorSystem) IsSatisfied(vector *scorer.Vector) bool
func (*VectorSystem) Normalize ¶
func (system *VectorSystem) Normalize()
Click to show internal directories.
Click to hide internal directories.