1
0
mirror of https://github.com/fumiama/jieba.git synced 2026-06-12 05:00:24 +08:00

优化 jieba

This commit is contained in:
源文雨
2022-11-30 16:00:56 +08:00
parent 4d76899e79
commit 6982ead703
8 changed files with 114 additions and 109 deletions

View File

@@ -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