This PR adds a score field to each umap_coords result (and, indirectly, to each neighbors result). The score is retrieved from Gensim's word2vec similarity score returned from KeyedVectors.most_similar() method. Note that the similarity score for the query word is manually set to 1, as it's completely similar with itself (thanks, @danich1, for the explanation).
This PR adds a
score
field to eachumap_coords
result (and, indirectly, to eachneighbors
result). The score is retrieved from Gensim's word2vec similarity score returned from KeyedVectors.most_similar() method. Note that the similarity score for the query word is manually set to 1, as it's completely similar with itself (thanks, @danich1, for the explanation).