1
0
mirror of https://github.com/fumiama/jieba.git synced 2026-06-19 09:50:25 +08:00

优化 Segmenter

This commit is contained in:
源文雨
2022-11-30 15:27:46 +08:00
parent b2508252d5
commit 7c685f789e
8 changed files with 203 additions and 249 deletions

View File

@@ -15,7 +15,7 @@ type Dictionary struct {
sync.RWMutex
}
// Load loads all tokens from given channel
// Load loads all tokens
func (d *Dictionary) Load(tokens ...dictionary.Token) {
d.Lock()
for _, token := range tokens {