Data for Wordpiece-Style Tokenization
Overview
Provides data to be used by the wordpiece algorithm in order to tokenize text into somewhat meaningful chunks. Included vocabularies were retrieved from https://huggingface.co/bert-base-cased/resolve/main/vocab.txt and https://huggingface.co/bert-base-uncased/resolve/main/vocab.txt and parsed into an R-friendly format.
- Breaking change: The wordpiece vocabularies are now character vectors, rather than named integer vectors. Update wordpiece to version 2.1.2 or later for compatibility.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 3 (2 internal)
- Examples that run
- 100%1 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
5 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/macmillancontentscience/wordpiece.data on 2026-10-21.
Dependencies
Installing wordpiece.data adds no packages beyond those that come with R.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 2.0.0Latest
- 1.0.22021-10-08 · diff ↗
- 1.0.12021-09-28
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2021-09-28
- Total releases
- 3 / 5 yrs
- License
- Apache License (>= 2)
- Minimum R
- ≥ 3.5.0
- Download size
- 280 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("wordpiece.data")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.