Access to Large Language Model Predictions

Provides access to word predictability estimates using large language models (LLMs) based on 'transformer' architectures via integration with the 'Hugging Face' ecosystem < https://huggingface.co/>. The package interfaces with pre-trained neural networks and supports both causal/auto-regressive LLMs (e.g., 'GPT-2') and masked/bidirectional LLMs (e.g., 'BERT') to compute the probability of words, phrases, or tokens given their linguistic context. For details on GPT-2 and causal models, see Radford et al. (2019) < https://storage.prod.researchhub.com/uploads/papers/2020/06/01/language-models.pdf>, for details on BERT and masked models, see Devlin et al. (2019) . By enabling a straightforward estimation of word predictability, the package facilitates research in psycholinguistics, computational linguistics, and natural language processing (NLP).


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("pangoling")

1.0.3 by Bruno Nicenboim, 2 years ago


https://docs.ropensci.org/pangoling/, https://github.com/ropensci/pangoling


Report a bug at https://github.com/ropensci/pangoling/issues


Browse source code at https://github.com/cran/pangoling


Authors: Bruno Nicenboim [aut, cre] , Chris Emmerly [ctb] , Giovanni Cassani [ctb] , Lisa Levinson [rev] , Utku Turk [rev]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports cachem, data.table, memoise, reticulate, rstudioapi, stats, tidyselect, tidytable, utils

Suggests brms, knitr, parallel, rmarkdown, spelling, testthat, tictoc, covr


See at CRAN