Open zwd2080 opened 2 years ago
Are you saying that you only want to have whole words matched? If so then you do not want to add strings characters as words, but rather sequence of words converted to numbers, otherwise the automaton will be on characters and will match characters: it does not know anything about words.
Hi @pombredanne just to make sure I understand: the idea is that each unique word in the needles would map to a distinct int
and we'd add these ints as keys and the words as the values?
Do you have a recommendation for this mapping? since the haystack will also need to mapped prior to iter
ating it with the same resulting map.
Thanks!
@pombredanne
Can we get more info on this please. I want exact(whole) word match and I am not able to understand how to approach it. Any insights would be greatly appreciated
Thanks
The second matching
(5, 'her' )
and the last one(14, 'she')
are not aliging the word boundary, how to remove them ? or could we force them to mathcing word?