facebookresearch / pysparnn

Approximate Nearest Neighbor Search for Sparse Data in Python!
Other
918 stars 145 forks source link

Is there a way to get row number for the matched value in the index? #32

Closed dmoham1476 closed 3 years ago

dmoham1476 commented 3 years ago

The search function, returns only matched value and the similarity score. Is there a way to get which row# in the index the match was found for the top k results?

dmoham1476 commented 3 years ago

Figured it out