mirror of
https://github.com/fumiama/jieba.git
synced 2026-06-10 11:40:26 +08:00
refactor variable name
This commit is contained in:
@@ -24,7 +24,7 @@ func Tokenize(sentence string, mode string, HMM bool) []Token {
|
||||
if width > step {
|
||||
for i := 0; i < width-step+1; i++ {
|
||||
gram := string(runes[i : i+step])
|
||||
if _, ok := T.Freq[gram]; ok {
|
||||
if _, ok := Trie.Freq[gram]; ok {
|
||||
tokens = append(tokens, Token{gram, start + i, start + i + step})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user