mirror of
https://github.com/fumiama/jieba.git
synced 2026-06-05 00:32:51 +08:00
21 lines
237 B
Go
21 lines
237 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 Loader interface {
|
|
AddEntry(Entry)
|
|
CachePath(string) string
|
|
}
|