Package: ssdiff 0.1.0

Paweł Lenartowicz
ssdiff: Supervised Semantic Differential
Interpretable, embedding-based analysis of concept meaning in text. Builds per-document concept vectors from local contexts around seed words, learns a semantic gradient that predicts a numeric outcome or separates groups, and interprets it through the nearest neighbours of each pole, clusters of those neighbours, text snippets and per-document scores. The method is described in Plisiecki, Lenartowicz, Pokropek, Małyska and Flakus (2025) <doi:10.31234/osf.io/gvrsb_v1>. A port of the 'Python' package 'ssdiff'.
Authors:
ssdiff_0.1.0.tar.gz
ssdiff_0.1.0.zip(r-4.7-any)ssdiff_0.1.0.zip(r-4.6-any)ssdiff_0.1.0.zip(r-4.5-any)
ssdiff_0.1.0.tgz(r-4.6-any)ssdiff_0.1.0.tgz(r-4.5-any)
ssdiff_0.1.0.tar.gz(r-4.7-any)ssdiff_0.1.0.tar.gz(r-4.6-any)
ssdiff_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
ssdiff/json (API)
| # Install 'ssdiff' in R: |
| install.packages('ssdiff', repos = c('https://pawlenartowicz.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/pawlenartowicz/ssdiff-r/issues
Last updated from:a6ba4c2eb9. Checks:7 OK, 2 ERROR. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 130 | ||
| source / vignettes | OK | 177 | ||
| linux-release | OK | 173 | ||
| macos-release | ERROR | 129 | ||
| macos-oldrel | ERROR | 128 | ||
| windows-devel | OK | 113 | ||
| windows-release | OK | 154 | ||
| windows-oldrel | OK | 132 | ||
| wasm-release | OK | 90 |
Exports:cluster_snippetscluster_wordsclusterscontrastdoc_textdocsevaluate_lexiconfit_groupsfit_multiplsfit_plsfit_regressioninstall_backendslexicon_tokensload_wordpackoutcomespage_dataplot_sweepranefsave_pageset_abttsnippetsssdsuggest_lexiconsweep_tablewith_lexiconwordpack_cachewordpack_lookupwordpack_openwordpack_read_rowswordpack_selftestwordpack_tokenizewords
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Words, clusters and snippets of a result | accessors clusters cluster_snippets cluster_words snippets words |
| The difference of two gradients | contrast |
| Documents of a result | docs doc_text |
| Evaluate a lexicon | evaluate_lexicon |
| Compare groups of documents | fit_groups |
| Fit PLS gradients for several outcomes | fit_multipls |
| Fit a PLS gradient | fit_pls |
| Regress an outcome on texts, with covariates | fit_regression |
| Install the plskit and fastglmm backends | install_backends |
| Tokens of a lexicon suggestion | lexicon_tokens |
| Load a wordpack | load_wordpack |
| Outcome loadings of a multi-outcome fit | outcomes |
| The results page | page_data save_page |
| Predict the outcome of new texts | predict.ssd_pca_ols predict.ssd_pls predict.ssd_result |
| Print a text | print.ssd |
| Print loaded embeddings | print.ssd_embeddings |
| Print a lexicon suggestion | print.ssd_lexicon |
| Print and summarise a result | print.ssd_contrast print.ssd_groups print.ssd_multipls print.ssd_pca_ols print.ssd_pls print.ssd_snippets result-print summary.ssd_contrast summary.ssd_groups summary.ssd_multipls summary.ssd_pca_ols summary.ssd_pls |
| Print a wordpack | print.wordpack |
| Model generics of a regression result | coef.ssd_pca_ols confint.ssd_pca_ols df.residual.ssd_pca_ols fitted.ssd_pca_ols logLik.ssd_pca_ols nobs.ssd_pca_ols ranef.ssd_pca_ols regression-generics residuals.ssd_pca_ols vcov.ssd_pca_ols |
| Set the ABTT of loaded embeddings | set_abtt |
| Build a text for SSD analysis | ssd |
| Suggest lexicon words | suggest_lexicon |
| The K sweep of a regression | plot_sweep sweep_table |
| Give a text another lexicon | with_lexicon |
| The wordpack cache | wordpack_cache |
| Rows of exact keys | wordpack_lookup |
| Open a .wordpack file | wordpack_open |
| Read embedding rows | wordpack_read_rows |
| Run the pack's self-test | wordpack_selftest |
| Tokenize texts with a wordpack | wordpack_tokenize |
