mirror of
https://github.com/fumiama/jieba.git
synced 2026-06-07 09:40:38 +08:00
try to refactor, not finished yet
This commit is contained in:
9
cache/cache.go
vendored
Normal file
9
cache/cache.go
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
package cache
|
||||
|
||||
type Cacher interface {
|
||||
SetDict(string) error
|
||||
LoadUserDict(string) error
|
||||
AddWord(string, string, float64)
|
||||
Get(string) (float64, bool)
|
||||
Total() float64
|
||||
}
|
||||
Reference in New Issue
Block a user