Documentation
¶
Index ¶
- func CalcWeights(ngmap map[string]*NGram, N int)
- func CosineSimilarity(ngmap map[string]*NGram)
- func Count(ngrams map[string]*NGram) map[string]int
- func FilterMeaningfulNGrams(ngmap map[string]*NGram, minDF int, maxDF int, minAvgTFIDF float64) []string
- func Generate(tokens []lexer.Lexeme, nrange []int, path string) map[string]*NGram
- func Merge(maps ...map[string]*NGram)
- func MergeStopWords()
- func OrderByFrequency(m map[string]*NGram) []struct{ ... }
- type NGram
- type NGramInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcWeights ¶
Calculate weights for ngrams found in a map of NGrams across N documents To be used after all document NGram maps are merged
func CosineSimilarity ¶
Compute cosine similarity between all document pairs
func FilterMeaningfulNGrams ¶
func MergeStopWords ¶
func MergeStopWords()
Merge custom stop words from config with stop words slice
Types ¶
Click to show internal directories.
Click to hide internal directories.