nmslib
nmslib copied to clipboard
list index out of range with KNNBatchQuery
I am using nmslib to match some terminologies from a chunk of text (vectorized with tfidf). But occasionally the index reported by the nearest neighbour object is out of the index range of the list of keywords being matched.
I have investigated the dimension of all the objects at creation and prediction time, all seems consistent. So, I wonder if there is an explanation on how nmslib does the nearest neighbour search that may justify the out of index result or how can I prevent this from happening.
Thank you
To have a real response to this you should provide some snippet to know how your code is using the library