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

refactor posseg, added Posseg struct

This commit is contained in:
Wang Bin
2015-03-24 16:54:02 +08:00
parent 0027927b6d
commit 73d87e4ed6
6 changed files with 146 additions and 109 deletions

15
dictionary.go Normal file
View File

@@ -0,0 +1,15 @@
package jiebago
type Pair struct {
Word string
Flag string
}
type Token struct {
*Pair
Freq float64
}
type DictLoader interface {
Add(*Token)
}