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

20 lines
216 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)
}