UWNETLAB / GeometryofCulture

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:R 55.1%Language:Python 44.9%