Package: nlpembeds 1.0.0

nlpembeds: Natural Language Processing Embeddings

Provides efficient methods to compute co-occurrence matrices, pointwise mutual information (PMI) and singular value decomposition (SVD). In the biomedical and clinical settings, one challenge is the huge size of databases, e.g. when analyzing data of millions of patients over tens of years. To address this, this package provides functions to efficiently compute monthly co-occurrence matrices, which is the computational bottleneck of the analysis, by using the 'RcppAlgos' package and sparse matrices. Furthermore, the functions can be called on 'SQL' databases, enabling the computation of co-occurrence matrices of tens of gigabytes of data, representing millions of patients over tens of years. Partly based on Hong C. (2021) <doi:10.1038/s41746-021-00519-z>.

Authors:Thomas Charlon [aut, cre], Doudou Zhou [ctb], CELEHS [aut]

nlpembeds_1.0.0.tar.gz
nlpembeds_1.0.0.zip(r-4.7)nlpembeds_1.0.0.zip(r-4.6)nlpembeds_1.0.0.zip(r-4.5)
nlpembeds_1.0.0.tgz(r-4.6-any)nlpembeds_1.0.0.tgz(r-4.5-any)
nlpembeds_1.0.0.tar.gz(r-4.7-any)nlpembeds_1.0.0.tar.gz(r-4.6-any)
nlpembeds_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
nlpembeds/json (API)

# Install 'nlpembeds' in R:
install.packages('nlpembeds', repos = c('https://thomaschln.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://gitlab.com/thomaschln/nlpembeds

On CRAN:

Conda:

4.00 score 2 scripts 198 downloads 9 exports 27 dependencies

Last updated from:69584a84c8. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK161
source / vignettesOK235
linux-release-x86_64OK163
macos-release-arm64OK131
macos-oldrel-arm64OK133
windows-develOK95
windows-releaseOK174
windows-oldrelOK114
wasm-releaseOK109

Exports:%<>%%>%%$%build_df_coocbuild_spm_cooc_symget_pmiget_svdspm_to_dfsql_cooc

Dependencies:bitbit64blobcachemclicpp11data.tableDBIfastmapgluegmplatticelifecyclemagrittrMatrixmemoisepkgconfigplyrRcppRcppAlgosreshape2rlangRSQLitersvdstringistringrvctrs

Co-occurrence Matrices and PMI-SVD Embeddings

Rendered fromcooc_pmi_svd.Rmdusingknitr::rmarkdownon May 07 2026.

Last update: 2025-02-02
Started: 2025-02-02