mirror of
https://github.com/fumiama/jieba.git
synced 2026-06-05 08:40:36 +08:00
24 lines
269 B
Go
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
|
|
}
|