LSHash icon indicating copy to clipboard operation
LSHash copied to clipboard

using on word vectors

Open armintabari opened this issue 9 years ago • 2 comments

I want to use this on bunch of word vectors and find the similar ones.

Should I firs index all of the vectors, and query each one again to find the bucket number?

armintabari avatar Oct 21 '15 20:10 armintabari

You index all the vectors, and then use 'query' to retrieve close matches. If you need to track where your vectors come from, etc. use the 'extra_data' argument in the 'index' method.

phdowling avatar Jun 27 '16 12:06 phdowling

what format is needed for the 'extra_data' parameter? Does this save the label for the vector and is able to output the label rather than the vector itself?

Dicksonchin93 avatar Sep 26 '17 02:09 Dicksonchin93