The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

semanticfa

Semantic Factor Analysis of Language Model Embeddings.

semanticfa performs exploratory factor analysis on language model embeddings of psychological scale items, recovering latent factor structure entirely from item text — no human response data required.

Installation

# install.packages("devtools")
devtools::install_github("devon7y/semanticfa")

Quick start

library(semanticfa)
data(big5)

fit <- sfa(
  big5$items,
  nfactors   = 5,
  embeddings = big5$embeddings,
  scoring    = big5$scoring
)
print(fit)
plot(fit, type = "scree")

Features

Encoding methods

Method Description
"atomic_reversed" Sign-flip by keying, L2-normalize, cosine similarity
"atomic" L2-normalize, cosine similarity (no sign-flip)
"squid" Subtract questionnaire-mean embedding, then cosine
"mean_centered_pearson" Mean-center → cosine = Pearson correlation

References

License

GPL (>= 3)

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.