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 |
DOI: |
10.32614/CRAN.package.nlpembeds |
Author: |
Thomas Charlon
[aut, cre],
Doudou Zhou [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:
Downloads:
Linking:
Please use the canonical form
https://CRAN.R-project.org/package=nlpembeds
to link to this page.