Skip to content

Github site with code and data associated with the ASR paper on the Geometry of Culture

Notifications You must be signed in to change notification settings

KnowledgeLab/GeometryofCulture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Geometry of Culture

Code and data associated with the ASR paper on the Geometry of Culture. The full paper can be found here: https://journals.sagepub.com/doi/full/10.1177/0003122419877135

Data

Word Embedding Models


Google Ngrams Raw Text


Survey of Cultural Associations

  • We also provide results from the Mechanical Turk survey of cultural associations. Data files include mean associations on race, class, and gender dimensions for 59 terms. We provide files with and without poststratification weights. These files are hosted here on github in the "survey_data" directory. Details of the survey can be found in Appendix A of the article.

Code

  • We provide scripts to assist in training embeddings and building "cultural dimensions" according to the method described in the paper. Scripts for complete replication are forthcoming.
    • w2v_train_model.py trains embedding model on raw text. It is specifically set up to read 5grams, but could be slightly adjusted to read in sentences of natural language.
    • build_cultural_dimensions.R loads in the pretrained models available above, builds cultural dimensions from the antonym pairs provided in the attached csv files, and validates correspondence between survey estimates and embedding projections.

About

Github site with code and data associated with the ASR paper on the Geometry of Culture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published