Replies: 1 comment 4 replies
-
Am I getting this right: you are looking for exact matches for a number of elements in the vector? For this case you could build subsets of the key. Because free ordering you don't need every permutation. e.g. from you could build
This looks wasteful on the 1st look, and would cause a lot of overhead if you do this and put the key/values into a hash set. But with an FST and minimization it should create a small lookup dictionary. A similar idea has been used for multiword completion matching: https://github.com/KeyviDev/keyvi/blob/master/python/examples/completion/multiword_completion_writer.py. For the multiword completion case we built a key-only dictionary and made the "value" part of the key separated by a magic separator. This was needed because of conflicting keys, e.g. this would conflict:
That's why the lookup is special, too. So, I think it is "somehow" possible, but requires some coding and experimentation. |
Beta Was this translation helpful? Give feedback.
-
I can store sequence of numbers as a key :
Given that, I want to store as a KEY a sequence of S numbers, where S < N. f.e. N=100, S=5
and then given another sequence f.e. [4,9,16,46,92] to match/find either the KEY with most overlapping numbers,
in this case :
[4,7,16,55,92] # matches:4,16,92
and/or the top X KEYS by sorted by overlap f.e. if X == 3
Is this possible by Keyvi or FST ? Regex?
The numbers in the KEY can be sorted like here..
Beta Was this translation helpful? Give feedback.
All reactions