1
0
mirror of https://github.com/fumiama/jieba.git synced 2026-06-05 08:40:36 +08:00
Files
jieba/dictionary.go
2015-03-28 15:49:32 +08:00

24 lines
269 B
Go

package jiebago
type Pair struct {
Word string
Flag string
}
type Entry struct {
*Pair
Freq float64
}
func NewEntry() *Entry {
return &Entry{new(Pair), 0.0}
}
type DictLoader interface {
AddEntry(*Entry)
}
type Cacher interface {
CacheNameFormat() string
}