tok: Fast Text Tokenization
Interfaces with the 'Hugging Face' tokenizers library to provide implementations
of today's most used tokenizers such as the 'Byte-Pair Encoding' algorithm
<https://huggingface.co/docs/tokenizers/index>. It's extremely fast for both
training new vocabularies and tokenizing texts.
| Version: |
0.2.3 |
| Depends: |
R (≥ 4.2.0) |
| Imports: |
R6, cli |
| Suggests: |
rmarkdown, testthat (≥ 3.0.0), hfhub (≥ 0.1.1), withr |
| Published: |
2026-06-21 |
| DOI: |
10.32614/CRAN.package.tok |
| Author: |
Tomasz Kalinowski [ctb, cre],
Daniel Falbel [aut],
Regouby Christophe [ctb],
Posit [cph] tok author details |
| Maintainer: |
Tomasz Kalinowski <tomasz at posit.co> |
| BugReports: |
https://github.com/mlverse/tok/issues |
| License: |
MIT + file LICENSE |
| URL: |
https://github.com/mlverse/tok |
| NeedsCompilation: |
yes |
| SystemRequirements: |
Cargo (Rust's package manager), rustc >= 1.77.2 |
| Materials: |
README, NEWS |
| CRAN checks: |
tok results |
Documentation:
Downloads:
Reverse dependencies:
Linking:
Please use the canonical form
https://CRAN.R-project.org/package=tok
to link to this page.