ahocorasick
ahocorasick copied to clipboard
Aho-Corasick string matching algorithm for golang
Results
1
ahocorasick issues
Sort by
recently updated
recently updated
newest added
异常case不能通过测试,无法命中“国人”这个词 ```go func Test2(t *testing.T) { ac := NewMatcher() dictionary := []string{"中国人民", "国人", "hello世界", "hello"} ac.Build(dictionary) ret := ac.Match("中国人") for _, v := range ret { fmt.Println(v.Index, v.EndPosition) } //if...