{
  "_id": "6a51fa4b9b92047c28d5359f",
  "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",
  "Roxygen": "list(markdown = TRUE)",
  "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",
  "Config/pak/sysreqs": "libpng-dev python3",
  "Repository": "https://shreyasmeher.r-universe.dev",
  "Date/Publication": "2026-07-03 06:08:33 UTC",
  "RemoteUrl": "https://github.com/shreyasmeher/conflibertr",
  "RemoteRef": "HEAD",
  "RemoteSha": "8bc8707d913e6d8112a382e4ba1c078718f2aa6b",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-11 08:06:06 UTC",
    "User": "root"
  },
  "Author": "Shreyas Meher [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-9656-4374>)",
  "Maintainer": "Shreyas Meher <shreyasmeher@gmail.com>",
  "_user": "shreyasmeher",
  "_type": "src",
  "_file": "conflibertR_0.5.3.tar.gz",
  "_fileid": "https://r2.ropensci.org/85a9b57b771f0cf7a2b703fc99980622279c7fffb484740bf1f7ee2ec1a6003b",
  "_filesize": 504617,
  "_sha256": "85a9b57b771f0cf7a2b703fc99980622279c7fffb484740bf1f7ee2ec1a6003b",
  "_expires": "2026-10-19T08:09:45.000Z",
  "_created": "2026-07-11T08:06:06.000Z",
  "_published": "2026-07-11T08:09:47.591Z",
  "_jobs": [
    {
      "job": 86526494140,
      "time": 163,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8246646474"
    },
    {
      "job": 86526494134,
      "time": 170,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8246647395"
    },
    {
      "job": 86526494130,
      "time": 182,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8246644835"
    },
    {
      "job": 86526494127,
      "time": 139,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8246640755"
    },
    {
      "job": 86526256045,
      "time": 198,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8246625575"
    },
    {
      "job": 86526494144,
      "time": 118,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8246640739"
    },
    {
      "job": 86526494162,
      "time": 124,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8246641569"
    },
    {
      "job": 86526494148,
      "time": 96,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8246638150"
    },
    {
      "job": 86526494233,
      "time": 93,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8246637859"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/shreyasmeher/actions/runs/29145493239",
  "_status": "success",
  "_upstream": "https://github.com/shreyasmeher/conflibertr",
  "_commit": {
    "id": "8bc8707d913e6d8112a382e4ba1c078718f2aa6b",
    "author": "Shreyas Meher <shreyasmeher@gmail.com>",
    "committer": "Shreyas Meher <shreyasmeher@gmail.com>",
    "message": "Make backend detection filesystem-only and cached (v0.5.3)\n\nThe 0.5.2 incoming pretest flagged conflibert_load and\nconflibert_multilabel examples for >10s elapsed time on\nr-devel-windows. The time was conda's ~10s cold start: that machine\nhas conda but no 'conflibert' env, and both .onLoad and\nconflibert_available() ran reticulate::conda_list() -- once per gated\nexample (133s examples total, and 10-12s per package-load check step\nin the same log).\n\n- Discover the conda env by probing <conda_root>/envs/conflibert\n  (root from reticulate::conda_binary(), no subprocess) plus the\n  user-level .conda/envs locations; wrap virtualenv_exists() the same\n  way.\n- Cache the conflibert_available() result for the session; the\n  CONFLIBERTR_AVAILABLE override is checked before the cache.\n- conflibert_status() keeps using conda_list(): it is an explicit,\n  user-invoked diagnostic.\n- Add an override round-trip test (88 passing), NEWS entry (0.5.2\n  entry folded into 0.5.3), and a pretest-response paragraph in\n  cran-comments.\n\nMeasured after the change: package load 1.3s, conda dir probe 18ms,\ncached detection call 24ms.\n",
    "time": 1783058913
  },
  "_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": "shreyasmeher",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-14",
      "n": 18
    },
    {
      "week": "2026-17",
      "n": 6
    },
    {
      "week": "2026-19",
      "n": 3
    },
    {
      "week": "2026-23",
      "n": 1
    },
    {
      "week": "2026-24",
      "n": 1
    },
    {
      "week": "2026-26",
      "n": 5
    },
    {
      "week": "2026-27",
      "n": 2
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "shreyasmeher",
      "count": 37,
      "uuid": 89471414
    },
    {
      "user": "yaminipravallika03",
      "count": 1,
      "uuid": 197320600
    }
  ],
  "_userbio": {
    "uuid": 89471414,
    "type": "user",
    "name": "Shreyas Meher",
    "followers": 2,
    "description": "Postdoctoral Researcher @ Erasmus University Rotterdam.\r\n\r\nInterests are Censorship, Language Models & Machine Learning. "
  },
  "_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"
  ],
  "_homeurl": "https://github.com/shreyasmeher/conflibertr",
  "_realowner": "shreyasmeher",
  "_cranurl": true,
  "_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/shreyasmeher/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-04-23 16:26:54",
      "modified": "2026-06-11 19:35:59",
      "commits": 4
    },
    {
      "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-04-02 15:43:00",
      "modified": "2026-04-02 15:43:00",
      "commits": 1
    }
  ],
  "_score": 4.845098040014257,
  "_indexed": true,
  "_nocasepkg": "conflibertr",
  "_universes": [
    "shreyasmeher"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.5.3",
      "date": "2026-07-11T08:08:33.000Z",
      "distro": "resolute",
      "commit": "8bc8707d913e6d8112a382e4ba1c078718f2aa6b",
      "fileid": "https://r2.ropensci.org/d49ad76ce1241c706dfc3ed46a453f0b3dda9bf2442d7e1a05a808c705cdae98",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shreyasmeher/actions/runs/29145493239"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.5.3",
      "date": "2026-07-11T08:08:39.000Z",
      "distro": "resolute",
      "commit": "8bc8707d913e6d8112a382e4ba1c078718f2aa6b",
      "fileid": "https://r2.ropensci.org/252c4cc81ffc3f5c35fd5ab8722ff84e44e5655c3a4908c5e8729935892e6446",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shreyasmeher/actions/runs/29145493239"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.5.3",
      "date": "2026-07-11T08:08:29.000Z",
      "commit": "8bc8707d913e6d8112a382e4ba1c078718f2aa6b",
      "fileid": "https://r2.ropensci.org/7e636c904b77b21a7f914d4b08b16e815a4d9dc411900b08bb9382e195def89a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shreyasmeher/actions/runs/29145493239"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.5.3",
      "date": "2026-07-11T08:08:00.000Z",
      "commit": "8bc8707d913e6d8112a382e4ba1c078718f2aa6b",
      "fileid": "https://r2.ropensci.org/c03b9af8a94e0aa0fbf0b5ad0196adcd33d322005a9ee365d2c18e9e7145d3d7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shreyasmeher/actions/runs/29145493239"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.5.3",
      "date": "2026-07-11T08:08:23.000Z",
      "commit": "8bc8707d913e6d8112a382e4ba1c078718f2aa6b",
      "fileid": "https://r2.ropensci.org/d907441fe1e3e447838744379bfcbc69dd8cd41edeb2d6a31f773666af402a99",
      "status": "success",
      "buildurl": "https://github.com/r-universe/shreyasmeher/actions/runs/29145493239"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.5.3",
      "date": "2026-07-11T08:07:43.000Z",
      "commit": "8bc8707d913e6d8112a382e4ba1c078718f2aa6b",
      "fileid": "https://r2.ropensci.org/7bee077696c7268d3b839583d9213308ed0938f9440cc83b10dab1051d9f20d8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shreyasmeher/actions/runs/29145493239"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.5.3",
      "date": "2026-07-11T08:07:21.000Z",
      "commit": "8bc8707d913e6d8112a382e4ba1c078718f2aa6b",
      "fileid": "https://r2.ropensci.org/4e09fabe555d4149489a3d1bd3573491c267b9c208359e33ab1510e914bca310",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shreyasmeher/actions/runs/29145493239"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.5.3",
      "date": "2026-07-11T08:07:20.000Z",
      "commit": "8bc8707d913e6d8112a382e4ba1c078718f2aa6b",
      "fileid": "https://r2.ropensci.org/617939a6ae0c2eac75c7aa9c9c9b22588ebdc7539e1cdaaa5c8a95aed134b51c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/shreyasmeher/actions/runs/29145493239"
    }
  ]
}