Closed mateuszjurewicz closed 6 years ago
Thanks for yours feedback, you are right. MItem's Freq property is always 0, and the propery is never used by my toy implementation. I am also new to Go, this is just a simple demo for learning, but I am trying to improve the quality in my spare time, sorry for this misleading and i'll fix them. thank you for your reminding.
Hi,
When you look at https://godoc.org/github.com/iohub/Ahocorasick#MItem the MItem should have a Freq property, which one would assume is the frequency of occurrence, but when you look at the code here:
https://github.com/iohub/Ahocorasick/blob/master/acmatcher.go
it actually only ever takes the default 0 value for undefined ints:
I could be wrong, I am new to Go, but it seems misleading.
Cheers! M