grafzahl: Supervised Machine Learning for Textual Data Using Transformers and 'Quanteda'

Duct tape the 'quanteda' ecosystem (Benoit et al., 2018) <doi:10.21105/joss.00774> to modern Transformer-based text classification models (Wolf et al., 2020) <doi:10.18653/v1/2020.emnlp-demos.6>, in order to facilitate supervised machine learning for textual data. This package mimics the behaviors of 'quanteda.textmodels' and provides a function to setup the 'Python' environment to use the pretrained models from 'Hugging Face' <>. More information: <doi:10.5117/CCR2023.1.003.CHAN>.

Version: 0.0.11
Depends: R (≥ 3.5)
Imports: jsonlite, lime, quanteda, reticulate, utils, stats
Suggests: knitr, quanteda.textmodels, rmarkdown, testthat (≥ 3.0.0), withr
Published: 2024-03-26
DOI: 10.32614/CRAN.package.grafzahl
Author: Chung-hong Chan ORCID iD [aut, cre]
Maintainer: Chung-hong Chan <chainsawtiney at>
License: GPL (≥ 3)
NeedsCompilation: no
Citation: grafzahl citation info
CRAN checks: grafzahl results


Reference manual: grafzahl.pdf
Vignettes: Setup Guide


Package source: grafzahl_0.0.11.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): grafzahl_0.0.11.tgz, r-oldrel (arm64): grafzahl_0.0.11.tgz, r-release (x86_64): grafzahl_0.0.11.tgz, r-oldrel (x86_64): grafzahl_0.0.11.tgz
Old sources: grafzahl archive


Please use the canonical form to link to this page.