Skip to content

wordpiece.data

2.0.0Package record

Data for Wordpiece-Style Tokenization

1packages depend
8.9Kdownloads / year
100.0%test coverage
13/13flavors OK

Overview

About

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.

Changes in 2.0.0
  • 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

CRAN checks
13OK
Slowest check: 48 s · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2.0.0
READMEYes · 178 wordsVignettesNoNEWSYes · 100% structured · mentions 2.0.0Citation fileNoWebsitenot declared in DESCRIPTION
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

8.9K
CRAN downloads in the past year
Rank #12,831 · ~24/day · ~742/mo
Daily download trend is not available in this view yet.
40830 days
88890 days
8.9K1 year
Compare downloads with other packages →
Also on85 r2u6 autocran

Repository

0Stars
0Forks
0Open issues
0Open PRs
3Releases
11Commits
1Commit identities
11 commits · Last activity 2022-03-03
Responsiveness
How these are sampled
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
PracticesBeta

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.

Governance and community (2)
Code of conductContributing guide
Docs source (1)
README.Rmd
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
1 external dependency (excludes base and recommended)

Installing wordpiece.data adds no packages beyond those that come with R.

Depends (1)
R >= 3.5.0
Imports (0)
none
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
1direct
1indirect
Imports 1
Depends, Imports or LinkingTo, most downloaded first

People & History

People (4)
Author, Maintainer since 1.0.1 (2021)
Copyright holder
original BERT vocabularies
Releases (3)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 2.0.0Latest
    record
    2022-03-03 · current release · diff ↗
  • 1.0.2
    record
    2021-10-08 · diff ↗
  • 1.0.1
    record
    2021-09-28
  • R
    R 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")
Harmon, J., Bedford Freeman & Worth Pub Grp LLC DBA Macmillan Learning, Google, Inc, & Bratt, J. (2022). wordpiece.data: Data for Wordpiece-Style Tokenization (Version 2.0.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for wordpiece.data version 2.0.0 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy