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

Version: 1.0.0
Depends: R (≥ 3.5.0)
Imports: data.table, magrittr, Matrix, methods, parallel, RcppAlgos, reshape2, RSQLite, rsvd
Suggests: knitr, testthat
Published: 2025-02-04
Author: Thomas Charlon ORCID iD [aut, cre], Doudou Zhou ORCID iD [ctb], CELEHS [aut] (<https://celehs.hms.harvard.edu>)
Maintainer: Thomas Charlon <charlon at protonmail.com>
BugReports: https://gitlab.com/thomaschln/nlpembeds/-/issues
License: GPL-3
URL: https://gitlab.com/thomaschln/nlpembeds
NeedsCompilation: no
CRAN checks: nlpembeds results

Documentation:

Reference manual: nlpembeds.pdf
Vignettes: Co-occurrence Matrices and PMI-SVD Embeddings (source, R code)

Downloads:

Package source: nlpembeds_1.0.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): nlpembeds_1.0.0.tgz, r-oldrel (arm64): not available, r-release (x86_64): nlpembeds_1.0.0.tgz, r-oldrel (x86_64): not available

Linking:

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