{
  "_id": "6a4969433c3572b93bf7fd10",
  "Package": "grafzahl",
  "Title": "Supervised Machine Learning for Textual Data Using Transformers\nand 'Quanteda'",
  "Version": "0.0.12",
  "Authors@R": "person(\"Chung-hong\", \"Chan\", , \"chainsawtiney@gmail.com\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-6232-7530\"))",
  "Description": "Duct tape the 'quanteda' ecosystem (Benoit et al., 2018)\n<doi:10.21105/joss.00774> to modern Transformer-based text\nclassification models (Wolf et al., 2020)\n<doi:10.18653/v1/2020.emnlp-demos.6>, in order to facilitate\nsupervised machine learning for textual data. This package\nmimics the behaviors of 'quanteda.textmodels' and provides a\nfunction to setup the 'Python' environment to use the\npretrained models from 'Hugging Face'\n<https://huggingface.co/>. More information:\n<doi:10.5117/CCR2023.1.003.CHAN>.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "URL": "https://gesistsa.github.io/grafzahl/,\nhttps://github.com/gesistsa/grafzahl",
  "BugReports": "https://github.com/gesistsa/grafzahl/issues",
  "Config/testthat/edition": "3",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "Config/Needs/website": "gesistsa/tsatemplate",
  "Config/pak/sysreqs": "libicu-dev libpng-dev libxml2-dev python3",
  "Repository": "https://gesistsa.r-universe.dev",
  "Date/Publication": "2025-09-02 11:50:44 UTC",
  "RemoteUrl": "https://github.com/gesistsa/grafzahl",
  "RemoteRef": "HEAD",
  "RemoteSha": "904066193116b1e0646640d432a0c15a10da5c8d",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-04 20:09:12 UTC",
    "User": "root"
  },
  "Author": "Chung-hong Chan [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-6232-7530>)",
  "Maintainer": "Chung-hong Chan <chainsawtiney@gmail.com>",
  "_user": "gesistsa",
  "_type": "src",
  "_file": "grafzahl_0.0.12.tar.gz",
  "_fileid": "https://r2.ropensci.org/f7b6c90d6760454457ac873d4337ffd4e260f42bf7f73d9214ed625a9dc545ef",
  "_filesize": 999039,
  "_sha256": "f7b6c90d6760454457ac873d4337ffd4e260f42bf7f73d9214ed625a9dc545ef",
  "_expires": "2026-10-12T20:12:49.000Z",
  "_created": "2026-07-04T20:09:12.000Z",
  "_published": "2026-07-04T20:12:51.293Z",
  "_jobs": [
    {
      "job": 85163239347,
      "time": 177,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8085046982"
    },
    {
      "job": 85163239350,
      "time": 161,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8085045212"
    },
    {
      "job": 85163239329,
      "time": 93,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8085037561"
    },
    {
      "job": 85163239366,
      "time": 147,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8085043592"
    },
    {
      "job": 85163006684,
      "time": 215,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8085026426"
    },
    {
      "job": 85163239335,
      "time": 158,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8085044884"
    },
    {
      "job": 85163239349,
      "time": 115,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8085040316"
    },
    {
      "job": 85163239339,
      "time": 103,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8085038689"
    },
    {
      "job": 85163239344,
      "time": 110,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8085039709"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/gesistsa/actions/runs/28718129015",
  "_status": "success",
  "_upstream": "https://github.com/gesistsa/grafzahl",
  "_commit": {
    "id": "904066193116b1e0646640d432a0c15a10da5c8d",
    "author": "Arthur Mühl <arthur.muehl@gesis.org>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Update methodshub.qmd (#46)\n\nRemoving an outdated section, that does not need to be in the methodshub.qmd-file anymore to prepare for the methods hub launch.",
    "time": 1756813844
  },
  "_maintainer": {
    "name": "Chung-hong Chan",
    "email": "chainsawtiney@gmail.com",
    "login": "chainsawriot",
    "orcid": "0000-0002-6232-7530",
    "description": "",
    "uuid": 637269
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "lime",
      "role": "Imports"
    },
    {
      "package": "quanteda",
      "role": "Imports"
    },
    {
      "package": "reticulate",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "quanteda.textmodels",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "gesistsa",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-32",
      "n": 1
    },
    {
      "week": "2025-33",
      "n": 1
    },
    {
      "week": "2025-36",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 43,
  "_contributors": [
    {
      "user": "chainsawriot",
      "count": 109,
      "uuid": 637269
    },
    {
      "user": "arthurmuehl",
      "count": 3,
      "uuid": 223466305
    },
    {
      "user": "bachl",
      "count": 2,
      "uuid": 6176704
    }
  ],
  "_userbio": {
    "uuid": 143654576,
    "type": "organization",
    "name": "Transparent Social Analytics",
    "followers": 47,
    "description": "Open Science Tools and more maintained by Transparent Social Analytics Team, GESIS"
  },
  "_downloads": {
    "count": 324,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/grafzahl"
  },
  "_devurl": "https://github.com/gesistsa/grafzahl",
  "_pkgdown": "https://gesistsa.github.io/grafzahl/",
  "_searchresults": 5,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/grafzahl.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/gesistsa/grafzahl",
  "_realowner": "gesistsa",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.5",
      "date": "2023-01-20"
    },
    {
      "version": "0.0.8",
      "date": "2023-04-12"
    },
    {
      "version": "0.0.11",
      "date": "2024-03-26"
    },
    {
      "version": "0.0.12",
      "date": "2025-06-18"
    }
  ],
  "_exports": [
    "detect_conda",
    "detect_cuda",
    "get_amharic_data",
    "grafzahl",
    "hydrate",
    "setup_grafzahl",
    "textmodel_transformer",
    "use_nonconda"
  ],
  "_datasets": [
    {
      "name": "ecosent",
      "title": "A Corpus Of Dutch News Headlines",
      "object": "ecosent",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "headline",
        "value",
        "gold"
      ],
      "rows": 6322,
      "table": true,
      "tojson": true
    },
    {
      "name": "supported_model_types",
      "title": "Supported model types",
      "object": "supported_model_types",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "unciviltweets",
      "title": "A Corpus Of Tweets With Incivility Labels",
      "object": "unciviltweets",
      "class": [
        "corpus",
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "detect_cuda",
      "title": "Detecting Miniconda And Cuda",
      "topics": [
        "detect_conda",
        "detect_cuda"
      ]
    },
    {
      "page": "ecosent",
      "title": "A Corpus Of Dutch News Headlines",
      "topics": [
        "ecosent"
      ]
    },
    {
      "page": "get_amharic_data",
      "title": "Download The Amharic News Text Classification Dataset",
      "topics": [
        "get_amharic_data"
      ]
    },
    {
      "page": "grafzahl",
      "title": "Fine tune a pretrained Transformer model for texts",
      "topics": [
        "grafzahl",
        "grafzahl.character",
        "grafzahl.corpus",
        "grafzahl.default",
        "textmodel_transformer"
      ]
    },
    {
      "page": "hydrate",
      "title": "Create a grafzahl S3 object from the output_dir",
      "topics": [
        "hydrate"
      ]
    },
    {
      "page": "predict.grafzahl",
      "title": "Prediction from a fine-tuned grafzahl object",
      "topics": [
        "predict.grafzahl"
      ]
    },
    {
      "page": "setup_grafzahl",
      "title": "Setup grafzahl",
      "topics": [
        "setup_grafzahl"
      ]
    },
    {
      "page": "supported_model_types",
      "title": "Supported model types",
      "topics": [
        "supported_model_types"
      ]
    },
    {
      "page": "unciviltweets",
      "title": "A Corpus Of Tweets With Incivility Labels",
      "topics": [
        "unciviltweets"
      ]
    },
    {
      "page": "use_nonconda",
      "title": "Set up grafzahl to be used on Google Colab or similar environments",
      "topics": [
        "use_nonconda"
      ]
    }
  ],
  "_readme": "https://github.com/gesistsa/grafzahl/raw/HEAD/README.md",
  "_rundeps": [
    "assertthat",
    "cli",
    "codetools",
    "cpp11",
    "farver",
    "fastmatch",
    "foreach",
    "ggplot2",
    "glmnet",
    "glue",
    "gower",
    "gtable",
    "here",
    "isoband",
    "ISOcodes",
    "iterators",
    "jsonlite",
    "labeling",
    "lattice",
    "lifecycle",
    "lime",
    "magrittr",
    "Matrix",
    "png",
    "quanteda",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "RcppTOML",
    "reticulate",
    "rlang",
    "rprojroot",
    "S7",
    "scales",
    "shape",
    "SnowballC",
    "stopwords",
    "stringi",
    "survival",
    "vctrs",
    "viridisLite",
    "withr",
    "xml2",
    "yaml"
  ],
  "_vignettes": [
    {
      "source": "grafzahl.Rmd",
      "filename": "grafzahl.html",
      "title": "Setup Guide",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Google Colab and similar services",
        "Default Python",
        "Use conda, but not the grafzahl's default",
        "With Cuda",
        "Without Cuda",
        "Explanation: Important options and envvars"
      ],
      "created": "2024-03-25 09:17:41",
      "modified": "2024-03-25 09:17:41",
      "commits": 1
    }
  ],
  "_score": 6.110589710299249,
  "_indexed": true,
  "_nocasepkg": "grafzahl",
  "_universes": [
    "gesistsa",
    "chainsawriot"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.12",
      "date": "2026-07-04T20:11:46.000Z",
      "distro": "resolute",
      "commit": "904066193116b1e0646640d432a0c15a10da5c8d",
      "fileid": "https://r2.ropensci.org/949a06ed97d4229a694296792fba22966ad0198788874902347e489e31199cd1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gesistsa/actions/runs/28718129015"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.12",
      "date": "2026-07-04T20:11:34.000Z",
      "distro": "resolute",
      "commit": "904066193116b1e0646640d432a0c15a10da5c8d",
      "fileid": "https://r2.ropensci.org/08cc84178c07ad4a844831e6cb2382b9f01df8460ad91fa504cc9822b4c931f3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gesistsa/actions/runs/28718129015"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.12",
      "date": "2026-07-04T20:10:44.000Z",
      "commit": "904066193116b1e0646640d432a0c15a10da5c8d",
      "fileid": "https://r2.ropensci.org/b49a564e5592d5d24407b503b9adfc33eea2bb5f92b2378570f6af8f2d343b82",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gesistsa/actions/runs/28718129015"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.12",
      "date": "2026-07-04T20:11:23.000Z",
      "commit": "904066193116b1e0646640d432a0c15a10da5c8d",
      "fileid": "https://r2.ropensci.org/32960ef8c5ee9182c7060ffedef1a0e58fccf3ff21ab20286976a5eafa610460",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gesistsa/actions/runs/28718129015"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.12",
      "date": "2026-07-04T20:12:10.000Z",
      "commit": "904066193116b1e0646640d432a0c15a10da5c8d",
      "fileid": "https://r2.ropensci.org/6380e1cc69657527ce40c5bcdce69d65df4a071d114f951e327ecb32ea8ec367",
      "status": "success",
      "buildurl": "https://github.com/r-universe/gesistsa/actions/runs/28718129015"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.12",
      "date": "2026-07-04T20:10:41.000Z",
      "commit": "904066193116b1e0646640d432a0c15a10da5c8d",
      "fileid": "https://r2.ropensci.org/afc55e7d1ebf5e520e5f206465c1e959b49702cd1627cd30fb3acc00d322e8db",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gesistsa/actions/runs/28718129015"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.12",
      "date": "2026-07-04T20:10:32.000Z",
      "commit": "904066193116b1e0646640d432a0c15a10da5c8d",
      "fileid": "https://r2.ropensci.org/150855f29c8d0ed82e184f497baf1442ec0c772d6f0dcb6f66bc63e59a2792e5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gesistsa/actions/runs/28718129015"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.12",
      "date": "2026-07-04T20:10:35.000Z",
      "commit": "904066193116b1e0646640d432a0c15a10da5c8d",
      "fileid": "https://r2.ropensci.org/e59d7d658c88b0c49321f03b3712a921a918c00baf0491c89f90f84f755f2329",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gesistsa/actions/runs/28718129015"
    }
  ]
}