Codebase list golang-github-jdkato-prose / a678fc7
Update old GoDoc comment Joseph Kato 6 years ago
1 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
1616 return density
1717 }
1818
19 // Keywords returns the top-n most used words in the Document, omitting stop
20 // words and normalizing case.
19 // Keywords returns a Document's words in the form
20 //
21 // map[word]count
22 //
23 // omitting stop words and normalizing case.
2124 func (d *Document) Keywords() map[string]int {
2225 scores := map[string]int{}
2326 for word, freq := range d.WordFrequency {