{
  "_id": "6a51846a9b92047c28d50a99",
  "Package": "conflibertR",
  "Title": "Inference and Fine-Tuning with 'ConfliBERT' Conflict Text Models",
  "Version": "0.5.3",
  "Authors@R": "person(\"Shreyas\", \"Meher\", email = \"shreyasmeher@gmail.com\",\nrole = c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0002-9656-4374\"))",
  "Description": "An interface to 'ConfliBERT', a pretrained language model\nfor analyzing text about conflict and political violence (Hu et\nal. (2022) <doi:10.18653/v1/2022.naacl-main.400>). Provides\nfunctions for named entity recognition, binary and multilabel\nclassification, and question answering, plus tools to fine-tune\ncustom classifiers, compare several base model architectures,\nand run an interactive active-learning loop for efficiently\nlabeling new data. Models are downloaded from 'Hugging Face'\nand run through the 'transformers' library for 'Python' via the\n'reticulate' package.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/shreyasmeher/conflibertR",
  "BugReports": "https://github.com/shreyasmeher/conflibertR/issues",
  "Encoding": "UTF-8",
  "Language": "en",
  "RoxygenNote": "7.3.2",
  "SystemRequirements": "Python (>= 3.8); the Python modules 'torch',\n'transformers' (>= 4.40), 'accelerate', 'peft', 'scikit-learn'\nand 'numpy', installable via conflibert_install()",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-10 23:43:43 UTC",
    "User": "root"
  },
  "Author": "Shreyas Meher [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-9656-4374>)",
  "Maintainer": "Shreyas Meher <shreyasmeher@gmail.com>",
  "Config/pak/sysreqs": "python3",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-07-10 20:40:09 UTC",
  "RemoteUrl": "https://github.com/cran/conflibertR",
  "RemoteRef": "HEAD",
  "RemoteSha": "d595503529548718bc1848b1488a3f4222fe3cc7",
  "_user": "cran",
  "_type": "src",
  "_file": "conflibertR_0.5.3.tar.gz",
  "_fileid": "https://r2.ropensci.org/6c0a72f3af19e1d51b7097d1bd5ab7466e42815abc3ccfb358b18dc30da1e176",
  "_filesize": 505263,
  "_sha256": "6c0a72f3af19e1d51b7097d1bd5ab7466e42815abc3ccfb358b18dc30da1e176",
  "_expires": "2026-10-18T23:46:48.000Z",
  "_created": "2026-07-10T23:43:43.000Z",
  "_published": "2026-07-10T23:46:50.271Z",
  "_jobs": [
    {
      "job": 86486290307,
      "time": 152,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8242054776"
    },
    {
      "job": 86486290332,
      "time": 144,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8242053104"
    },
    {
      "job": 86485724362,
      "time": 310,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8242022920"
    },
    {
      "job": 86486290281,
      "time": 121,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8242047791"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/29130820207",
  "_status": "success",
  "_upstream": "https://github.com/cran/conflibertR",
  "_commit": {
    "id": "d595503529548718bc1848b1488a3f4222fe3cc7",
    "author": "Shreyas Meher <shreyasmeher@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.5.3\n",
    "time": 1783716009
  },
  "_maintainer": {
    "name": "Shreyas Meher",
    "email": "shreyasmeher@gmail.com",
    "login": "shreyasmeher",
    "orcid": "0000-0002-9656-4374",
    "twitter": "@shreyasmhr",
    "description": "Postdoctoral Researcher @ Erasmus University Rotterdam.\n\nInterests are Censorship, Language Models & Machine Learning. ",
    "uuid": 89471414
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "reticulate",
      "version": ">= 1.34",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "miniUI",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "rstudioapi",
      "role": "Suggests"
    },
    {
      "package": "shiny",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-28",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.5.3",
      "date": "2026-07-10"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "shreyasmeher",
      "count": 1,
      "uuid": 89471414
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 617,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/conflibertR"
  },
  "_devurl": "https://github.com/shreyasmeher/conflibertr",
  "_searchresults": 8,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/conflibertR.html",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.5.3",
      "date": "2026-07-10"
    }
  ],
  "_exports": [
    "conflibert_active_label",
    "conflibert_active_next",
    "conflibert_active_save",
    "conflibert_active_start",
    "conflibert_available",
    "conflibert_benchmark",
    "conflibert_classify",
    "conflibert_compare",
    "conflibert_example",
    "conflibert_finetune",
    "conflibert_install",
    "conflibert_load",
    "conflibert_models",
    "conflibert_multilabel",
    "conflibert_ner",
    "conflibert_qa",
    "conflibert_status",
    "theme_conflibert"
  ],
  "_help": [
    {
      "page": "autoplot.conflibert_al_session",
      "title": "Plot Active Learning Progress with ggplot2",
      "topics": [
        "autoplot.conflibert_al_session"
      ]
    },
    {
      "page": "autoplot.conflibert_classify",
      "title": "Plot Classification Results with ggplot2",
      "topics": [
        "autoplot.conflibert_classify"
      ]
    },
    {
      "page": "autoplot.conflibert_comparison",
      "title": "Plot a Model Comparison with ggplot2",
      "topics": [
        "autoplot.conflibert_comparison"
      ]
    },
    {
      "page": "autoplot.conflibert_finetune",
      "title": "Plot a Fine-tuning Confusion Matrix with ggplot2",
      "topics": [
        "autoplot.conflibert_finetune"
      ]
    },
    {
      "page": "autoplot.conflibert_multilabel",
      "title": "Plot Multilabel Results with ggplot2",
      "topics": [
        "autoplot.conflibert_multilabel"
      ]
    },
    {
      "page": "autoplot.conflibert_ner",
      "title": "Plot NER Results with ggplot2",
      "topics": [
        "autoplot.conflibert_ner"
      ]
    },
    {
      "page": "conflibert_active_label",
      "title": "Label the Current Query Interactively",
      "topics": [
        "conflibert_active_label"
      ]
    },
    {
      "page": "conflibert_active_next",
      "title": "Submit Labels and Query the Next Batch",
      "topics": [
        "conflibert_active_next"
      ]
    },
    {
      "page": "conflibert_active_save",
      "title": "Save the Active Learning Model",
      "topics": [
        "conflibert_active_save"
      ]
    },
    {
      "page": "conflibert_active_start",
      "title": "Start an Active Learning Session",
      "topics": [
        "conflibert_active_start"
      ]
    },
    {
      "page": "conflibert_available",
      "title": "Is the ConfliBERT Python Backend Available?",
      "topics": [
        "conflibert_available"
      ]
    },
    {
      "page": "conflibert_benchmark",
      "title": "Benchmark the Pretrained Classifier",
      "topics": [
        "conflibert_benchmark"
      ]
    },
    {
      "page": "conflibert_classify",
      "title": "Binary Classification",
      "topics": [
        "conflibert_classify"
      ]
    },
    {
      "page": "conflibert_compare",
      "title": "Compare Multiple Models",
      "topics": [
        "conflibert_compare"
      ]
    },
    {
      "page": "conflibert_example",
      "title": "Load Example Dataset",
      "topics": [
        "conflibert_example"
      ]
    },
    {
      "page": "conflibert_finetune",
      "title": "Fine-tune a Classification Model",
      "topics": [
        "conflibert_finetune"
      ]
    },
    {
      "page": "conflibert_install",
      "title": "Install Python dependencies for ConfliBERT",
      "topics": [
        "conflibert_install"
      ]
    },
    {
      "page": "conflibert_load",
      "title": "Load a Fine-tuned Classifier",
      "topics": [
        "conflibert_load"
      ]
    },
    {
      "page": "conflibert_models",
      "title": "List Available Models",
      "topics": [
        "conflibert_models"
      ]
    },
    {
      "page": "conflibert_multilabel",
      "title": "Multilabel Classification",
      "topics": [
        "conflibert_multilabel"
      ]
    },
    {
      "page": "conflibert_ner",
      "title": "Named Entity Recognition",
      "topics": [
        "conflibert_ner"
      ]
    },
    {
      "page": "conflibert_qa",
      "title": "Question Answering",
      "topics": [
        "conflibert_qa"
      ]
    },
    {
      "page": "conflibert_status",
      "title": "Check the conflibertR Setup",
      "topics": [
        "conflibert_status"
      ]
    },
    {
      "page": "plot.conflibert_al_session",
      "title": "Plot an Active Learning Session",
      "topics": [
        "plot.conflibert_al_session"
      ]
    },
    {
      "page": "plot.conflibert_classify",
      "title": "Plot Classification Results",
      "topics": [
        "plot.conflibert_classify"
      ]
    },
    {
      "page": "plot.conflibert_comparison",
      "title": "Plot a Model Comparison",
      "topics": [
        "plot.conflibert_comparison"
      ]
    },
    {
      "page": "plot.conflibert_finetune",
      "title": "Plot a Fine-tuning Confusion Matrix",
      "topics": [
        "plot.conflibert_finetune"
      ]
    },
    {
      "page": "plot.conflibert_multilabel",
      "title": "Plot Multilabel Results",
      "topics": [
        "plot.conflibert_multilabel"
      ]
    },
    {
      "page": "plot.conflibert_ner",
      "title": "Plot NER Results",
      "topics": [
        "plot.conflibert_ner"
      ]
    },
    {
      "page": "predict.conflibert_classifier",
      "title": "Predict with a Loaded Classifier",
      "topics": [
        "predict.conflibert_classifier"
      ]
    },
    {
      "page": "theme_conflibert",
      "title": "ConfliBERT ggplot2 Theme",
      "topics": [
        "theme_conflibert"
      ]
    }
  ],
  "_readme": "https://github.com/cran/conflibertR/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "glue",
    "here",
    "jsonlite",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "pillar",
    "pkgconfig",
    "png",
    "rappdirs",
    "Rcpp",
    "RcppTOML",
    "reticulate",
    "rlang",
    "rprojroot",
    "tibble",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "active-learning.Rmd",
      "filename": "active-learning.html",
      "title": "Active Learning with conflibertR",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Example data",
        "Starting a session",
        "Labeling and iterating",
        "Visualizing progress",
        "Query strategies",
        "Diversity-aware batches",
        "LoRA fine-tuning",
        "Saving the model",
        "Tips"
      ],
      "created": "2026-07-10 20:40:09",
      "modified": "2026-07-10 20:40:09",
      "commits": 1
    },
    {
      "source": "conflibertR-demo.Rmd",
      "filename": "conflibertR-demo.html",
      "title": "Getting Started with conflibertR",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2026-07-10 20:40:09",
      "modified": "2026-07-10 20:40:09",
      "commits": 1
    }
  ],
  "_score": 3,
  "_indexed": true,
  "_nocasepkg": "conflibertr",
  "_universes": [
    "cran",
    "shreyasmeher"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.5.3",
      "date": "2026-07-10T23:46:02.000Z",
      "distro": "resolute",
      "commit": "d595503529548718bc1848b1488a3f4222fe3cc7",
      "fileid": "https://r2.ropensci.org/e59fe874a153c9118149600e61392a08aa286bdf8339a24f31aeefdceae58cc9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/29130820207"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.5.3",
      "date": "2026-07-10T23:45:59.000Z",
      "distro": "resolute",
      "commit": "d595503529548718bc1848b1488a3f4222fe3cc7",
      "fileid": "https://r2.ropensci.org/5db4b53018e89ad9100150c47f8d3af6ab405154282b5effad2ee70b7eec150b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/29130820207"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.5.3",
      "date": "2026-07-10T23:46:04.000Z",
      "commit": "d595503529548718bc1848b1488a3f4222fe3cc7",
      "fileid": "https://r2.ropensci.org/2843dc8c9c94d5990fbd1f5712ea9b5b1676a0eeb72e429b4a7fd09120fb1732",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/29130820207"
    }
  ]
}