Versions in this module Expand all Collapse all v1 v1.0.2 Jul 13, 2023 v1.0.1 Jul 13, 2023 Changes in this version + const DefaultConfidenceThreshold + type Classifier struct + MinDiffRatio float64 + func New(threshold float64, funcs ...NormalizeFunc) *Classifier + func (c *Classifier) AddPrecomputedValue(key, value string, set *searchset.SearchSet) error + func (c *Classifier) AddValue(key, value string) error + func (c *Classifier) MultipleMatch(s string) (matches Matches) + func (c *Classifier) NearestMatch(s string) *Match + type Match struct + Confidence float64 + Extent int + Name string + Offset int + type Matches []*Match + func (m Matches) Len() int + func (m Matches) Less(i, j int) bool + func (m Matches) Names() []string + func (m Matches) Swap(i, j int) + type NormalizeFunc func(string) string + var FlattenWhitespace NormalizeFunc = func(s string) string { ... }