File: wordstats.go

package info (click to toggle)
golang-github-advancedlogic-goose 0.0~git20210820.9d5822d%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 516 kB
  • sloc: makefile: 128; sh: 11
file content (39 lines) | stat: -rw-r--r-- 765 bytes parent folder | download | duplicates (2)
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 (
	"github.com/fatih/set"
)

//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 (w *wordStats) getStopWords() *set.Set {
	return w.stopWords
}

func (w *wordStats) setStopWords(stopWords *set.Set) {
	w.stopWords = stopWords
}

func (w *wordStats) getStopWordCount() int {
	return w.stopWordCount
}

func (w *wordStats) setStopWordCount(stopWordCount int) {
	w.stopWordCount = stopWordCount
}

func (w *wordStats) getWordCount() int {
	return w.wordCount
}

func (w *wordStats) setWordCount(wordCount int) {
	w.wordCount = wordCount
}