Package: conflibertR 0.5.3

conflibertR: Inference and Fine-Tuning with 'ConfliBERT' Conflict Text Models

An interface to 'ConfliBERT', a pretrained language model for analyzing text about conflict and political violence (Hu et al. (2022) <doi:10.18653/v1/2022.naacl-main.400>). Provides functions for named entity recognition, binary and multilabel classification, and question answering, plus tools to fine-tune custom classifiers, compare several base model architectures, and run an interactive active-learning loop for efficiently labeling new data. Models are downloaded from 'Hugging Face' and run through the 'transformers' library for 'Python' via the 'reticulate' package.

Authors:Shreyas Meher [aut, cre]

conflibertR_0.5.3.tar.gz
conflibertR_0.5.3.zip(r-4.7)conflibertR_0.5.3.zip(r-4.6)conflibertR_0.5.3.zip(r-4.5)
conflibertR_0.5.3.tgz(r-4.6-any)conflibertR_0.5.3.tgz(r-4.5-any)
conflibertR_0.5.3.tar.gz(r-4.7-any)conflibertR_0.5.3.tar.gz(r-4.6-any)
conflibertR_0.5.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
conflibertR/json (API)

# Install 'conflibertR' in R:
install.packages('conflibertR', repos = c('https://shreyasmeher.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/shreyasmeher/conflibertr/issues

On CRAN:

Conda:

4.85 score 8 scripts 18 exports 21 dependencies

Last updated from:8bc8707d91. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK163
source / vignettesOK198
linux-release-x86_64OK170
macos-release-arm64OK139
macos-oldrel-arm64OK182
windows-develOK124
windows-releaseOK93
windows-oldrelOK96
wasm-releaseOK118

Exports:conflibert_active_labelconflibert_active_nextconflibert_active_saveconflibert_active_startconflibert_availableconflibert_benchmarkconflibert_classifyconflibert_compareconflibert_exampleconflibert_finetuneconflibert_installconflibert_loadconflibert_modelsconflibert_multilabelconflibert_nerconflibert_qaconflibert_statustheme_conflibert

Dependencies:cliglueherejsonlitelatticelifecyclemagrittrMatrixpillarpkgconfigpngrappdirsRcppRcppTOMLreticulaterlangrprojroottibbleutf8vctrswithr

Active Learning with conflibertR
Example data | Starting a session | Labeling and iterating | Visualizing progress | Query strategies | Diversity-aware batches | LoRA fine-tuning | Saving the model | Tips

Last update: 2026-06-11
Started: 2026-04-23

Getting Started with conflibertR
Setup | Named Entity Recognition | Binary Classification | Multilabel Event Classification | Question Answering | Benchmarking the Pretrained Classifier | Fine-Tuning a Custom Classifier | Comparing Multiple Models | Multiclass Fine-Tuning | Summary

Last update: 2026-04-02
Started: 2026-04-02

Readme and manuals

Help Manual

Help pageTopics
Plot Active Learning Progress with ggplot2autoplot.conflibert_al_session
Plot Classification Results with ggplot2autoplot.conflibert_classify
Plot a Model Comparison with ggplot2autoplot.conflibert_comparison
Plot a Fine-tuning Confusion Matrix with ggplot2autoplot.conflibert_finetune
Plot Multilabel Results with ggplot2autoplot.conflibert_multilabel
Plot NER Results with ggplot2autoplot.conflibert_ner
Label the Current Query Interactivelyconflibert_active_label
Submit Labels and Query the Next Batchconflibert_active_next
Save the Active Learning Modelconflibert_active_save
Start an Active Learning Sessionconflibert_active_start
Is the ConfliBERT Python Backend Available?conflibert_available
Benchmark the Pretrained Classifierconflibert_benchmark
Binary Classificationconflibert_classify
Compare Multiple Modelsconflibert_compare
Load Example Datasetconflibert_example
Fine-tune a Classification Modelconflibert_finetune
Install Python dependencies for ConfliBERTconflibert_install
Load a Fine-tuned Classifierconflibert_load
List Available Modelsconflibert_models
Multilabel Classificationconflibert_multilabel
Named Entity Recognitionconflibert_ner
Question Answeringconflibert_qa
Check the conflibertR Setupconflibert_status
Plot an Active Learning Sessionplot.conflibert_al_session
Plot Classification Resultsplot.conflibert_classify
Plot a Model Comparisonplot.conflibert_comparison
Plot a Fine-tuning Confusion Matrixplot.conflibert_finetune
Plot Multilabel Resultsplot.conflibert_multilabel
Plot NER Resultsplot.conflibert_ner
Predict with a Loaded Classifierpredict.conflibert_classifier
ConfliBERT ggplot2 Themetheme_conflibert