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:
nlpembeds_1.0.0.tar.gz
nlpembeds_1.0.0.zip(r-4.5)nlpembeds_1.0.0.zip(r-4.4)nlpembeds_1.0.0.zip(r-4.3)
nlpembeds_1.0.0.tgz(r-4.5-any)nlpembeds_1.0.0.tgz(r-4.4-any)nlpembeds_1.0.0.tgz(r-4.3-any)
nlpembeds_1.0.0.tar.gz(r-4.5-noble)nlpembeds_1.0.0.tar.gz(r-4.4-noble)
nlpembeds_1.0.0.tgz(r-4.4-emscripten)nlpembeds_1.0.0.tgz(r-4.3-emscripten)
nlpembeds.pdf |nlpembeds.html✨
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
Last updated 1 days agofrom:25f90ce98b. Checks:8 OK. Indexed: yes.
Target | Result | Latest binary |
---|---|---|
Doc / Vignettes | OK | Feb 20 2025 |
R-4.5-win | OK | Feb 20 2025 |
R-4.5-mac | OK | Feb 20 2025 |
R-4.5-linux | OK | Feb 20 2025 |
R-4.4-win | OK | Feb 20 2025 |
R-4.4-mac | OK | Feb 20 2025 |
R-4.3-win | OK | Feb 20 2025 |
R-4.3-mac | OK | Feb 20 2025 |
Exports:%<>%%>%%$%build_df_coocbuild_spm_cooc_symget_pmiget_svdspm_to_dfsql_cooc
Dependencies:bitbit64blobcachemclicpp11data.tableDBIfastmapgluegmplatticelifecyclemagrittrMatrixmemoisepkgconfigplogrplyrRcppRcppAlgosreshape2rlangRSQLitersvdstringistringrvctrs
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Assignment pipe | %<>% |
Pipe | %>% |
Exposition pipe | %$% |
Compute monthly co-occurrence matrix | build_df_cooc |
Build symmetric sparse matrix from data frame | build_spm_cooc_sym |
Compute pointwise mutual information (PMI) | get_pmi |
Compute random singular value decomposition (rSVD) | get_svd |
Write sparse matrix to dataframe | spm_to_df |
Compute co-occurrence matrix on SQL file | sql_cooc |