mirror of
https://github.com/fumiama/jieba.git
synced 2026-06-19 09:50:25 +08:00
优化 Segmenter
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user