Crandore Hub

semanticfa

Semantic Factor Analysis of Language Model Embeddings

Performs exploratory factor analysis on language model embeddings of psychological scale items. Embeds item text with sentence transformers or other language models, transforms the embeddings into item-by-item similarity matrices, and extracts latent factor structure via standard exploratory factor analysis. Supports embedding-adapted parallel analysis, several similarity transforms (atomic reversed, SQuID centering, mean-centered Pearson), and fit diagnostics tailored to embedding matrices (TEFI, RMSR, CAF, McDonald's omega). The underlying methods are documented with full citations in the corresponding function help pages. Returns objects compatible with 'psych' and 'EFAtools' workflows.

Versions across snapshots

VersionRepositoryFileSize
0.1.0 rolling linux/jammy R-4.5 semanticfa_0.1.0.tar.gz 413.2 KiB
0.1.0 rolling linux/noble R-4.5 semanticfa_0.1.0.tar.gz 413.2 KiB
0.1.0 rolling source/ R- semanticfa_0.1.0.tar.gz 222.1 KiB
0.1.0 latest linux/jammy R-4.5 semanticfa_0.1.0.tar.gz 413.2 KiB
0.1.0 latest linux/noble R-4.5 semanticfa_0.1.0.tar.gz 413.2 KiB
0.1.0 latest source/ R- semanticfa_0.1.0.tar.gz 222.1 KiB
0.1.0 2026-04-23 source/ R- semanticfa_0.1.0.tar.gz 0 B

Dependencies (latest)

Imports

Suggests