Learn R Programming

grafzahl (version 0.0.12)

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

Description

Duct tape the 'quanteda' ecosystem (Benoit et al., 2018) to modern Transformer-based text classification models (Wolf et al., 2020) , 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: .

Copy Link

Version

Install

install.packages('grafzahl')

Monthly Downloads

179

Version

0.0.12

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Chung-hong Chan

Last Published

June 18th, 2025

Functions in grafzahl (0.0.12)

use_nonconda

Set up grafzahl to be used on Google Colab or similar environments
grafzahl

Fine tune a pretrained Transformer model for texts
setup_grafzahl

Setup grafzahl
predict.grafzahl

Prediction from a fine-tuned grafzahl object
get_amharic_data

Download The Amharic News Text Classification Dataset
detect_conda

Detecting Miniconda And Cuda
unciviltweets

A Corpus Of Tweets With Incivility Labels
hydrate

Create a grafzahl S3 object from the output_dir
ecosent

A Corpus Of Dutch News Headlines
supported_model_types

Supported model types