Versions in this module Expand all Collapse all v0 v0.1.1 Sep 1, 2025 v0.1.0 Aug 28, 2025 Changes in this version + const Dataset + const DefaultNgramLength + const MinLength + var MinScore = 8.6 + func Accuracy(...) float64 + func NewDefaultScorer() (func(string) (bool, error), error) + func NewScorer(opts *Options) (func(string) (bool, error), error) + func Precision(truePositiveCount, falsePositiveCount int) float64 + func Recall(truePositiveCount, falseNegativeCount int) float64 + func TFIDFScoreFunction(ngramFreq NGramScores, n int, lenThres float64, lenPenalty float64, ...) func(string) float64 + type NGramScores map[string]Score + func NewNGramDict(keys []string, values []Score) NGramScores + func (ns NGramScores) Frequency(s string) float64 + func (ns NGramScores) IDF(s string) float64 + func (ns NGramScores) IsNGram(s string) bool + func (ns NGramScores) TotalFrequency(s string) float64 + type NGramSet struct + Set map[string][]string + func NewNGramSet() NGramSet + func (n *NGramSet) Add(ngram string, s string) + type Options struct + Dataset string + type Score [3]float64 + func (s Score) Frequency() float64 + func (s Score) IDF() float64 + func (s Score) TotalFrequency() float64