Skip to content

Python implementation of semantic projection from Grand et al. (2022)

Notifications You must be signed in to change notification settings

esfahany/semantic-projection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Semantic Projection using GloVe

Python implementation of semantic projection from Grand et al. (2022)

Download pre-trained GloVe vectors here: https://nlp.stanford.edu/projects/glove/

Notebook includes functions to calculate:

  • Feature vector from two opposing word sets (such as {small, little, tiny} and {large, big, huge})
  • Word projections onto feature vector
  • Scalar "projection score" of words on feature vector
  • Ranking of words on feature vector

There's also an example using the "animals" category from the paper of running a regression of the semantic projection scores on a set of human ratings (ratings generated by me): image

About

Python implementation of semantic projection from Grand et al. (2022)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published