Update old GoDoc comment
Joseph Kato
6 years ago
16 | 16 | return density |
17 | 17 | } |
18 | 18 | |
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. | |
21 | 24 | func (d *Document) Keywords() map[string]int { |
22 | 25 | scores := map[string]int{} |
23 | 26 | for word, freq := range d.WordFrequency { |