{
  "_id": "6ad07781e2d863f662954c07",
  "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-10-15 06:27:03 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/a9a10226bb60a504a0e93c2138a29e8c551cdbdbf52f11cc1dadf0cf82f08357",
  "_filesize": 996865,
  "_sha256": "a9a10226bb60a504a0e93c2138a29e8c551cdbdbf52f11cc1dadf0cf82f08357",
  "_expires": "2027-01-23T06:49:24.000Z",
  "_created": "2026-10-15T06:27:03.000Z",
  "_published": "2026-10-15T06:49:37.567Z",
  "_buildurl": "https://github.com/r-universe/gesistsa/actions/runs/38692140810",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 116281772891,
      "time": 159,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11953225594"
    },
    {
      "job": 116281772866,
      "time": 136,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11952787841"
    },
    {
      "job": 116281772787,
      "time": 116,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11952484990"
    },
    {
      "job": 116281772827,
      "time": 174,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11953218103"
    },
    {
      "job": 116280347419,
      "time": 266,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11953140172"
    },
    {
      "job": 116281772870,
      "time": 124,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11952782793"
    },
    {
      "job": 116281772833,
      "time": 105,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11953340301"
    },
    {
      "job": 116281772863,
      "time": 109,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11952937537"
    },
    {
      "job": 116281772976,
      "time": 88,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11953365222"
    }
  ],
  "_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": [],
  "_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": 272,
    "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/manual.pdf",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_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": 5.633468455579587,
  "_indexed": true,
  "_nocasepkg": "grafzahl",
  "_universes": [
    "gesistsa",
    "chainsawriot"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.12",
      "date": "2026-10-15T06:30:22.000Z",
      "distro": "resolute",
      "commit": "904066193116b1e0646640d432a0c15a10da5c8d",
      "fileid": "https://r2.ropensci.org/71e14ea1b7a18ee6c991d5cbb6db8ee29d634876db09341c1583cee471289e51",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gesistsa/actions/runs/38692140810"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.12",
      "date": "2026-10-15T06:30:02.000Z",
      "distro": "resolute",
      "commit": "904066193116b1e0646640d432a0c15a10da5c8d",
      "fileid": "https://r2.ropensci.org/1229f0028eae21f326f9acbe2af9b68a9a912ff79298a47ea9adec1db09d1577",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gesistsa/actions/runs/38692140810"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.12",
      "date": "2026-10-15T06:40:30.000Z",
      "commit": "904066193116b1e0646640d432a0c15a10da5c8d",
      "fileid": "https://r2.ropensci.org/93349d1ed5c455ebfdb4886b9ce27d330bee3c3e83d7957f06400c6624b34995",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gesistsa/actions/runs/38692140810"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.12",
      "date": "2026-10-15T06:48:05.000Z",
      "commit": "904066193116b1e0646640d432a0c15a10da5c8d",
      "fileid": "https://r2.ropensci.org/b9a01fef0b5974fba80a8be8b67867583a0ed846d87ddfdb5fbf7141638c5ab0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gesistsa/actions/runs/38692140810"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.12",
      "date": "2026-10-15T06:30:26.000Z",
      "commit": "904066193116b1e0646640d432a0c15a10da5c8d",
      "fileid": "https://r2.ropensci.org/e925755a219d522ab57fe0706b2b76570103f6f053d85074d11af42bed23641c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/gesistsa/actions/runs/38692140810"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.12",
      "date": "2026-10-15T06:29:19.000Z",
      "commit": "904066193116b1e0646640d432a0c15a10da5c8d",
      "fileid": "https://r2.ropensci.org/ff6138be21c8fe714c4573eedf50b18c7a9f5bf5241fa467b79e6cbfb5755225",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gesistsa/actions/runs/38692140810"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.12",
      "date": "2026-10-15T06:29:28.000Z",
      "commit": "904066193116b1e0646640d432a0c15a10da5c8d",
      "fileid": "https://r2.ropensci.org/8a2370f8d274428a16ee299bb5f58e7c6ffbe72fe17a7f9194ebd981d438a5d1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gesistsa/actions/runs/38692140810"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.12",
      "date": "2026-10-15T06:29:12.000Z",
      "commit": "904066193116b1e0646640d432a0c15a10da5c8d",
      "fileid": "https://r2.ropensci.org/f58cea59999cc16a478f2478de5a9eece841d962adc0a36eac23a50356f25ff6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gesistsa/actions/runs/38692140810"
    }
  ]
}