PsychWordVec: Word Embedding Research Framework for Psychological Science

An integrative toolbox of word embedding research that provides: (1) a collection of 'pre-trained' static word vectors in the '.RData' compressed format <https://psychbruce.github.io/WordVector_RData.pdf>; (2) a series of functions to process, analyze, and visualize word vectors; (3) a range of tests to examine conceptual associations, including the Word Embedding Association Test <doi:10.1126/science.aal4230> and the Relative Norm Distance <doi:10.1073/pnas.1720347115>, with permutation test of significance; (4) a set of training methods to locally train (static) word vectors from text corpora, including 'Word2Vec' <arXiv:1301.3781>, 'GloVe' <doi:10.3115/v1/D14-1162>, and 'FastText' <arXiv:1607.04606>; (5) a group of functions to download 'pre-trained' language models (e.g., 'GPT', 'BERT') and extract contextualized (dynamic) word vectors (based on the R package 'text').

Getting started

Package details

AuthorHan-Wu-Shuang Bao [aut, cre] (<https://orcid.org/0000-0003-3043-710X>)
MaintainerHan-Wu-Shuang Bao <baohws@foxmail.com>
LicenseGPL-3
Version2023.9
URL https://psychbruce.github.io/PsychWordVec/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("PsychWordVec")

Try the PsychWordVec package in your browser

Any scripts or data that you put into this service are public.

PsychWordVec documentation built on Sept. 27, 2023, 5:08 p.m.