1
0
mirror of https://github.com/fumiama/jieba.git synced 2026-06-05 00:32:51 +08:00

put dictionary to a seperated module

This commit is contained in:
Wang Bin
2015-04-29 18:51:38 +08:00
parent b19eb4f6fe
commit 0124ebadce
2 changed files with 140 additions and 0 deletions

19
dictionary/token.go Normal file
View File

@@ -0,0 +1,19 @@
package dictionary
type Token struct {
text string
frequency float64
pos string
}
func (t Token) Text() string {
return t.text
}
func (t Token) Frequency() float64 {
return t.frequency
}
func (t Token) Pos() string {
return t.pos
}