greenelab / word-lapse

Explore how a word changes over time
https://greenelab.github.io/word-lapse/
Other
6 stars 3 forks source link

Adds similarity score to umap_coords, neighbors #50

Closed falquaddoomi closed 2 years ago

falquaddoomi commented 2 years ago

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).

netlify[bot] commented 2 years ago

Deploy Preview for word-lapse canceled.

Name Link
Latest commit e8e01ca1bf3becae4f0a2a8ba071c36828930cd1
Latest deploy log https://app.netlify.com/sites/word-lapse/deploys/6269cd3a8be4670008339f88