Skip to content

conText

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

v3.0.0 · Sep 2, 2025 · GPL-3

Description

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>.

Downloads

352

Last 30 days

10895th

990

Last 90 days

4.3K

Last year

Trend: 0% (30d vs prior 30d)

CRAN Check Status

3 ERROR
11 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang ERROR
r-devel-linux-x86_64-debian-gcc ERROR
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 ERROR
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (3 non-OK)
ERROR r-devel-linux-x86_64-debian-clang

re-building of vignette outputs

Error(s) in re-building vignettes:
  ...
--- re-building ‘quickstart.Rmd’ using rmarkdown
INFO  [23:57:13.339] epoch 1, loss 0.2263
INFO  [23:57:15.756] epoch 2, loss 0.0759
INFO  [23:57:18.096] epoch 3, loss 0.0492
INFO  [23:57:20.842] epoch 4, loss 0.0372
INFO  [23:57:23.108] epoch 5, loss 0.0302
INFO  [23:57:25.494] epoch 6, loss 0.0255
INFO  [23:57:28.133] epoch 7, loss 0.0222
INFO  [23:57:30.224] epoch 8, loss 0.0198
INFO  [23:57:32.188] epoch 9, loss 0.0178
INFO  [23:57:34.615] epoch 10, loss 0.0163
pandoc: /usr/share/javascript/mathjax/MathJax.js: withBinaryFile: does not exist (No such file or directory)
HasCallStack backtrace:
  collectBacktraces, called at libraries/ghc-internal/src/GHC/Internal/Exception.hs:169:13 in ghc-internal:GHC.Internal.Exception
  toExceptionWithBacktrace, called at libraries/ghc-internal/src/GHC/Internal/IO.hs:260:11 in ghc-internal:GHC.Internal.IO
  throwIO, called at libraries/ghc-internal/src/GHC/Internal/IO/Exception.hs:315:19 in ghc-internal:GHC.Internal.IO.Exception
  ioException, called at libraries/ghc-internal/src/GHC/Internal/IO/Exception.hs:319:20 in ghc-internal:GHC.Internal.IO.Exception


Error: processing vignette 'quickstart.Rmd' failed with diagnostics:
pandoc document conversion failed with error 1
--- failed re-building ‘quickstart.Rmd’

SUMMARY: processing the following file failed:
  ‘quickstart.Rmd’

Error: Vignette re-building failed.
Execution halted
ERROR r-devel-linux-x86_64-debian-gcc

re-building of vignette outputs

Error(s) in re-building vignettes:
  ...
--- re-building ‘quickstart.Rmd’ using rmarkdown
INFO  [19:45:52.773] epoch 1, loss 0.2262
INFO  [19:45:55.616] epoch 2, loss 0.0759
INFO  [19:45:57.847] epoch 3, loss 0.0492
INFO  [19:45:59.963] epoch 4, loss 0.0372
INFO  [19:46:02.304] epoch 5, loss 0.0302
INFO  [19:46:04.896] epoch 6, loss 0.0255
INFO  [19:46:07.242] epoch 7, loss 0.0222
INFO  [19:46:09.356] epoch 8, loss 0.0197
INFO  [19:46:11.308] epoch 9, loss 0.0178
INFO  [19:46:13.283] epoch 10, loss 0.0163
pandoc: /usr/share/javascript/mathjax/MathJax.js: withBinaryFile: does not exist (No such file or directory)
HasCallStack backtrace:
  collectBacktraces, called at libraries/ghc-internal/src/GHC/Internal/Exception.hs:169:13 in ghc-internal:GHC.Internal.Exception
  toExceptionWithBacktrace, called at libraries/ghc-internal/src/GHC/Internal/IO.hs:260:11 in ghc-internal:GHC.Internal.IO
  throwIO, called at libraries/ghc-internal/src/GHC/Internal/IO/Exception.hs:315:19 in ghc-internal:GHC.Internal.IO.Exception
  ioException, called at libraries/ghc-internal/src/GHC/Internal/IO/Exception.hs:319:20 in ghc-internal:GHC.Internal.IO.Exception


Error: processing vignette 'quickstart.Rmd' failed with diagnostics:
pandoc document conversion failed with error 1
--- failed re-building ‘quickstart.Rmd’

SUMMARY: processing the following file failed:
  ‘quickstart.Rmd’

Error: Vignette re-building failed.
Execution halted
ERROR r-release-linux-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
  ...
--- re-building ‘quickstart.Rmd’ using rmarkdown
INFO  [11:27:20.314] epoch 1, loss 0.2262
INFO  [11:27:22.973] epoch 2, loss 0.0758
INFO  [11:27:24.974] epoch 3, loss 0.0491
INFO  [11:27:27.121] epoch 4, loss 0.0372
INFO  [11:27:29.012] epoch 5, loss 0.0301
INFO  [11:27:31.668] epoch 6, loss 0.0255
INFO  [11:27:33.758] epoch 7, loss 0.0222
INFO  [11:27:36.106] epoch 8, loss 0.0197
INFO  [11:27:38.295] epoch 9, loss 0.0178
INFO  [11:27:40.278] epoch 10, loss 0.0163
pandoc: /usr/share/javascript/mathjax/MathJax.js: withBinaryFile: does not exist (No such file or directory)
HasCallStack backtrace:
  collectBacktraces, called at libraries/ghc-internal/src/GHC/Internal/Exception.hs:169:13 in ghc-internal:GHC.Internal.Exception
  toExceptionWithBacktrace, called at libraries/ghc-internal/src/GHC/Internal/IO.hs:260:11 in ghc-internal:GHC.Internal.IO
  throwIO, called at libraries/ghc-internal/src/GHC/Internal/IO/Exception.hs:315:19 in ghc-internal:GHC.Internal.IO.Exception
  ioException, called at libraries/ghc-internal/src/GHC/Internal/IO/Exception.hs:319:20 in ghc-internal:GHC.Internal.IO.Exception


Error: processing vignette 'quickstart.Rmd' failed with diagnostics:
pandoc document conversion failed with error 1
--- failed re-building ‘quickstart.Rmd’

SUMMARY: processing the following file failed:
  ‘quickstart.Rmd’

Error: Vignette re-building failed.
Execution halted

Check History

ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 3, 2026
ERROR r-devel-linux-x86_64-debian-gcc

re-building of vignette outputs

Error(s) in re-building vignettes:
  ...
--- re-building ‘quickstart.Rmd’ using rmarkdown
INFO  [15:43:09.621] epoch 1, loss 0.2263
INFO  [15:43:12.574] epoch 2, loss 0.0759
INFO  [15:43:15.651] epoch 3, loss 0.0492
INFO  [15:43:18.824] epoch 4, loss
...[truncated]...
 'quickstart.Rmd' failed with diagnostics:
pandoc document conversion failed with error 1
--- failed re-building ‘quickstart.Rmd’

SUMMARY: processing the following file failed:
  ‘quickstart.Rmd’

Error: Vignette re-building failed.
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies dplyr Matrix quanteda text2vec (>= 0.6) reshape2 fastDummies stringr (>= 1.4.0) tidyr ggplot2 broom foreach estimatr tidyselect conText

Version History

new 3.0.0 Mar 10, 2026
updated 3.0.0 ← 1.4.3 diff Sep 2, 2025
updated 1.4.3 ← 1.4.2 diff Feb 8, 2023
updated 1.4.2 ← 1.1.0 diff Jan 13, 2023
updated 1.1.0 ← 1.0.0 diff Apr 4, 2022
new 1.0.0 Oct 24, 2021