This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
JointCloud
/
common
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
0
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
优化注释
gitlink
Sydonian
1 year ago
parent
b95e3f44f9
commit
5da7b2e42a
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
pkgs/trie/trie.go
+ 1
- 0
pkgs/trie/trie.go
View File
@@ -101,6 +101,7 @@ func (n *Node[T]) RemoveSelf(cleanParent bool) {
n.Parent = nil
}
// 修改时需要注意允许在visitorFn中删除当前节点
func (n *Node[T]) Iterate(visitorFn func(word string, node *Node[T], isWordNode bool) VisitCtrl) {
if n.WordNexts != nil {
for word, node := range n.WordNexts {
Write
Preview
Loading…
Cancel
Save