Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DocScores ¶
type DocScores []DocScore
DocScores is a list of DocScore
type TFIDF ¶
type TFIDF struct {
// Term Frequency
TF map[int]float64
// Inverse Document Frequency
IDF map[int]float64
// Docs is the count of documents
Docs int
// Len is the total length of docs
Len int
sync.Mutex
}
TFIDF is a structure holding the relevant state information about TF/IDF
func (*TFIDF) CalculateIDF ¶
func (tf *TFIDF) CalculateIDF()
CalculateIDF calculates the inverse document frequency
Click to show internal directories.
Click to hide internal directories.