Is there a python method or module to get nearest neighbors for a vector?

32 views
Skip to first unread message

Johann Petrak

unread,
May 13, 2020, 11:18:40 AM5/13/20
to fastText library
It is easy to get nearest neighbors for a word using model.get_nearest_neighbors(word) but
I could not find a method that would give me the nearest neighbors for a given vector (which may
be calculated and not identical to any word vector in the model).
How to do that?
Reply all
Reply to author
Forward
0 new messages