Package: PsychWordVec 2023.9
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').
Authors:
PsychWordVec_2023.9.tar.gz
PsychWordVec_2023.9.tar.gz(r-4.5-noble)PsychWordVec_2023.9.tar.gz(r-4.4-noble)
PsychWordVec_2023.9.tgz(r-4.4-emscripten)PsychWordVec_2023.9.tgz(r-4.3-emscripten)
PsychWordVec.pdf |PsychWordVec.html✨
PsychWordVec/json (API)
NEWS
# Install 'PsychWordVec' in R: |
install.packages('PsychWordVec', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/psychbruce/psychwordvec/issues
Pkgdown site:https://psychbruce.github.io
- demodata - Demo data (pre-trained using word2vec on Google News; 8000 vocab, 300 dims).
Last updated 1 years agofrom:17d922c38c. Checks:OK: 2. Indexed: no.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Dec 28 2024 |
R-4.5-linux | OK | Dec 28 2024 |
Exports:as_embedas_wordveccccos_distcos_simcosine_similaritydata_transformdata_wordvec_loaddata_wordvec_subsetdict_expanddict_reliabilityget_wordvecload_embedload_wordvecmost_similarnormalizeorth_procrustespair_similaritypatternplot_networkplot_similarityplot_wordvecplot_wordvec_tSNEsum_wordvectab_similaritytest_RNDtest_WEATtext_inittext_model_downloadtext_model_removetext_to_vectext_unmasktokenizetrain_wordvec
Dependencies:abindafexaskpassbackportsbase64encbayestestRbitbit64bootbroombroom.mixedbruceRbslibcachemcarcarDatacellrangercheckmateclassclicliprclockclustercodacodetoolscolorspacecommonmarkcorpcorcorrplotcowplotcpp11crayoncurldata.tabledatawizardDerivdiagramdialsDiceDesigndigestdoBydoFuturedplyreffectsizeeffsizeemmeansestimabilityevaluatefansifarverfastmapfastTextRfdrtoolfloatfontawesomeforcatsforeachforeignFormulafsfurrrfuturefuture.applygenericsggplot2ggrepelggwordcloudglassoglobalsgluegowerGPArotationGPfitgridExtragridtextgtablegtoolshardhathavenherehighrHmischmshtmlTablehtmltoolshtmlwidgetshttrigraphinsightinteractionsipredisobandISOcodesiteratorsjpegjquerylibjsonlitejtoolsKernSmoothknitrlabelinglatticelavalavaanlgrlhslifecyclelistenvlme4lmerTestlpSolvelubridatemagrittrmalletmarkdownMASSMatrixMatrixExtraMatrixModelsmediationmemoisemgcvmicrobenchmarkmimeminqamlapimnormtmodelenvmodelrmunsellmvtnormngramnlmenloptrnnetnumDerivopensslpanderparallellyparametersparsnippbapplypbivnormpbkrtestperformancepillarpkgconfigplyrpngprettyunitsprodlimprogressprogressrpsychpurrrqgraphquadprogquantregR.methodsS3R.ooR.utilsR6rappdirsRColorBrewerRcppRcppArmadilloRcppEigenRcppProgressRcppTOMLreadrreadxlrecipesrematchreshape2reticulaterglRhpcBLASctlriorJavarlangrmarkdownrpartrprojrootrsamplersparseRSpectrarstudioapiRtsnesandwichsassscalessfdshapeslamsliderSparseMSQUAREMstopwordsstringistringrsurvivalsystexregtexttext2vectextmineRtibbletidyrtidyselecttimechangetimeDatetinytextopicstunetzdbutf8vctrsviridisviridisLitevroomwarpwithrword2vecworkflowswritexlxfunxml2yamlyardstickzoo