mirror of
https://github.com/fumiama/jieba.git
synced 2026-06-12 05:00:24 +08:00
优化 jieba
This commit is contained in:
@@ -10,9 +10,9 @@ import (
|
||||
|
||||
// A Dictionary represents a thread-safe dictionary used for word segmentation.
|
||||
type Dictionary struct {
|
||||
sync.RWMutex
|
||||
total, logTotal float64
|
||||
freqMap map[string]float64
|
||||
sync.RWMutex
|
||||
}
|
||||
|
||||
// Load loads all tokens
|
||||
|
||||
Reference in New Issue
Block a user