forked from advancedlogic/GoOse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwordstats.go
39 lines (31 loc) · 802 Bytes
/
wordstats.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package goose
import (
"gopkg.in/fatih/set.v0"
)
//some word statistics
type wordStats struct {
//total number of stopwords or good words that we can calculate
stopWordCount int
//total number of words on a node
wordCount int
//holds an actual list of the stop words we found
stopWords *set.Set
}
func (this *wordStats) getStopWords() *set.Set {
return this.stopWords
}
func (this *wordStats) setStopWords(stopWords *set.Set) {
this.stopWords = stopWords
}
func (this *wordStats) getStopWordCount() int {
return this.stopWordCount
}
func (this *wordStats) setStopWordCount(stopWordCount int) {
this.stopWordCount = stopWordCount
}
func (this *wordStats) getWordCount() int {
return this.wordCount
}
func (this *wordStats) setWordCount(wordCount int) {
this.wordCount = wordCount
}