conText: 'a la Carte' on Text (ConText) Embedding Regression

A fast, flexible and transparent framework to estimate context-specific word and short document embeddings using the 'a la carte' embeddings approach developed by Khodak et al. (2018) <doi:10.48550/arXiv.1805.05388> and evaluate hypotheses about covariate effects on embeddings using the regression framework developed by Rodriguez et al. (2021)<doi:10.1017/S0003055422001228>. New version of the package applies a new estimator to measure the distance between word embeddings as described in Green et al. (2025) <doi:10.1017/pan.2024.22>.

Version: 3.0.0
Depends: R (≥ 3.6.0)
Imports: dplyr, Matrix (≥ 1.3-2), quanteda (≥ 3.0.0), text2vec (≥ 0.6), reshape2 (≥ 1.4.4), fastDummies (≥ 1.6.3), stringr (≥ 1.4.0), tidyr (≥ 1.1.3), ggplot2, broom, foreach, methods, estimatr, utils, stats, tidyselect
Suggests: SnowballC (≥ 0.7.0), hunspell, knitr, rmarkdown, formatR, testthat (≥ 3.0.0), doParallel, data.table, RcppParallel
Published: 2025-09-03
Author: Pedro L. Rodriguez ORCID iD [aut, cph], Arthur Spirling ORCID iD [aut], Brandon Stewart ORCID iD [aut], Christopher Barrie ORCID iD [ctb], Sofia Avila ORCID iD [cre, aut]
Maintainer: Sofia Avila <sofiaavila at princeton.edu>
BugReports: https://github.com/prodriguezsosa/ConText/issues
License: GPL-3
URL: https://github.com/prodriguezsosa/conText
NeedsCompilation: no
Language: en-US
Materials: README
CRAN checks: conText results

Documentation:

Reference manual: conText.html , conText.pdf
Vignettes: Quick Start Guide (source, R code)

Downloads:

Package source: conText_3.0.0.tar.gz
Windows binaries: r-devel: conText_1.4.3.zip, r-release: conText_1.4.3.zip, r-oldrel: conText_1.4.3.zip
macOS binaries: r-release (arm64): conText_1.4.3.tgz, r-oldrel (arm64): conText_1.4.3.tgz, r-release (x86_64): conText_1.4.3.tgz, r-oldrel (x86_64): conText_1.4.3.tgz
Old sources: conText archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=conText to link to this page.