MCPcopy Create free account
hub / github.com/andeya/algorithm / WordFrequencies

Method WordFrequencies

bayesian/bayesian.go:377–389  ·  view source on GitHub ↗

WordFrequencies returns a matrix of word frequencies that currently exist in the classifier for each class state for the given input words. In other words, if you obtain the frequencies freqs := c.WordFrequencies(/* [j]string */) then the expression freq[i][j] represents the frequency of the j-th

(words []string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 1

getWordProbMethod · 0.80

Tested by 1