Package: FMAT 2026.1

FMAT: The Fill-Mask Association Test
The Fill-Mask Association Test ('FMAT') <doi:10.1037/pspa0000396> is an integrative, probability-based social computing method using Masked Language Models to measure conceptual associations (e.g., attitudes, biases, stereotypes, social norms, cultural values) as propositional semantic representations in natural language. Supported language models include 'BERT' <doi:10.48550/arXiv.1810.04805> and its variants available at 'Hugging Face' <https://huggingface.co/models?pipeline_tag=fill-mask>. Methodological references and installation guidance are provided at <https://psychbruce.github.io/FMAT/>.
Authors:
FMAT_2026.1.tar.gz
FMAT_2026.1.zip(r-4.7)FMAT_2026.1.zip(r-4.6)FMAT_2026.1.zip(r-4.5)
FMAT_2026.1.tgz(r-4.6-any)FMAT_2026.1.tgz(r-4.5-any)
FMAT_2026.1.tar.gz(r-4.7-any)FMAT_2026.1.tar.gz(r-4.6-any)
FMAT_2026.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
FMAT/json (API)
NEWS
| # Install 'FMAT' in R: |
| install.packages('FMAT', repos = c('https://psychbruce.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/psychbruce/fmat/issues
Pkgdown/docs site:https://psychbruce.github.io
aiartificial-intelligencebertbert-modelbert-modelscontextualized-representationfill-in-the-blankfill-maskhuggingfacelanguage-modellanguage-modelslarge-language-modelsmasked-language-modelsnatural-language-processingnatural-language-understandingnlppretrained-modelstransformertransformers
Last updated from:4341b67f87. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 187 | ||
| source / vignettes | OK | 267 | ||
| linux-release-x86_64 | OK | 182 | ||
| macos-release-arm64 | OK | 118 | ||
| macos-oldrel-arm64 | OK | 107 | ||
| windows-devel | OK | 98 | ||
| windows-release | OK | 113 | ||
| windows-oldrel | OK | 90 | ||
| wasm-release | OK | 173 |
Exports:.BERT_downloadBERT_infoBERT_info_dateBERT_removeBERT_vocabfill_maskfill_mask_checkFMAT_queryFMAT_query_bindFMAT_runICC_modelsLPR_reliabilityset_cache_folderspecial_caseweight_decay
Dependencies:askpassclicpp11crayoncurldata.tabledplyrforcatsgenericsglueGPArotationherehttrirrjsonlitelatticelifecyclelpSolvemagrittrMatrixmimemnormtnlmeopensslpillarpkgconfigplyrpngpsychpurrrR6rappdirsRcppRcppTOMLreticulaterlangrprojrootrvestselectrstringistringrsystibbletidyrtidyselectutf8vctrswithrxml2
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Download and save BERT models to local cache folder. | BERT_download |
| Get basic information of BERT models. | BERT_info |
| Scrape the initial commit date of BERT models. | BERT_info_date |
| Remove BERT models from local cache folder. | BERT_remove |
| Check if mask words are in the model vocabulary. | BERT_vocab |
| Run the fill-mask pipeline and check the raw results. | fill_mask fill_mask_check |
| Prepare a data.table of queries and variables for the FMAT. | FMAT_query |
| Combine multiple query data.tables and renumber query ids. | FMAT_query_bind |
| Run the fill-mask pipeline on multiple models (CPU / GPU). | FMAT_run |
| Intraclass correlation coefficient (ICC) of BERT models. | ICC_models |
| Reliability analysis (Cronbach's alpha) of LPR. | LPR_reliability |
| Set (change) HuggingFace cache folder temporarily. | set_cache_folder |
| Specify models that require special treatment to ensure accuracy. | special_case |
| [S3 method] Summarize the results for the FMAT. | summary.fmat |
| Compute a vector of weights with a decay rate. | weight_decay |
