Package: FMAT 2025.4

FMAT: The Fill-Mask Association Test
The Fill-Mask Association Test ('FMAT') <doi:10.1037/pspa0000396> is an integrative and probability-based method using Masked Language Models to measure conceptual associations (e.g., attitudes, biases, stereotypes, social norms, cultural values) as propositions 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_2025.4.tar.gz
FMAT_2025.4.zip(r-4.5)FMAT_2025.4.zip(r-4.4)FMAT_2025.4.zip(r-4.3)
FMAT_2025.4.tgz(r-4.5-any)FMAT_2025.4.tgz(r-4.4-any)FMAT_2025.4.tgz(r-4.3-any)
FMAT_2025.4.tar.gz(r-4.5-noble)FMAT_2025.4.tar.gz(r-4.4-noble)
FMAT_2025.4.tgz(r-4.4-emscripten)FMAT_2025.4.tgz(r-4.3-emscripten)
FMAT.pdf |FMAT.html✨
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 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 22 hours agofrom:793b559bc0. Checks:9 OK. Indexed: yes.
Target | Result | Latest binary |
---|---|---|
Doc / Vignettes | OK | Apr 01 2025 |
R-4.5-win | OK | Apr 01 2025 |
R-4.5-mac | OK | Apr 01 2025 |
R-4.5-linux | OK | Apr 01 2025 |
R-4.4-win | OK | Apr 01 2025 |
R-4.4-mac | OK | Apr 01 2025 |
R-4.4-linux | OK | Apr 01 2025 |
R-4.3-win | OK | Apr 01 2025 |
R-4.3-mac | OK | Apr 01 2025 |
Exports:.BERT_downloadBERT_infoBERT_info_dateBERT_removeBERT_vocabfill_maskfill_mask_checkFMAT_queryFMAT_query_bindFMAT_runICC_modelsLPR_reliabilityset_cache_folder
Dependencies:askpassclicpp11crayoncurldata.tabledplyrfansiforcatsgenericsglueGPArotationherehttrirrjsonlitelatticelifecyclelpSolvemagrittrMatrixmimemnormtnlmeopensslpillarpkgconfigplyrpngpsychpurrrR6rappdirsRcppRcppTOMLreticulaterlangrprojrootrvestselectrstringistringrsystibbletidyrtidyselectutf8vctrswithrxml2
Readme and manuals
Help Manual
Help page | Topics |
---|---|
A simple function equivalent to 'list'. | . |
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 |
[S3 method] Summarize the results for the FMAT. | summary.fmat |