sentencepiece
0.2.5Text Tokenization using Byte Pair Encoding and Unigram Modelling
Overview
Unsupervised text tokenizer allowing to perform byte pair encoding and unigram modelling. Wraps the 'sentencepiece' library https://github.com/google/sentencepiece which provides a language independent tokenizer to split text in words and smaller subword units. The techniques are explained in the paper "SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processing" by Taku Kudo and John Richardson (2018) doi:10.18653/v1/D18-2012. Provides as well straightforward access to pretrained byte pair encoding models and subword embeddings trained on Wikipedia using 'word2vec', as described in "BPEmb: Tokenization-free Pre-trained Subword Embeddings in 275 Languages" by Benjamin Heinzerling and Michael Strube (2018) http://www.lrec-conf.org/proceedings/lrec2018/pdf/1049.pdf.
Install
Health
- OK2026-06-0813 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-0712 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-04-2512 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-04-2211 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-04-1810 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
Show 3 earlier snapshots
- NOTE2026-04-1011 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-04-0910 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- NOTE2026-03-1011 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 94%
- Return-value docs
- 100%
- References docs
- 0%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Repository practices
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/bnosac/sentencepiece on 2026-07-19.
Dependencies
Code & Tests
- Cyclomatic complexity
- 1.0 median / 10 max
- System requirements
- 1 external
Test coverage
Line coverage
–
Expression
–
Tests / Examples
–
Functions
2603 10 exported
Complexity
2.7 avg / 10 max
Call network
2603 nodes / 3709 edges
Call graph
Open call graph →Lowest coverage
Per-function coverage is not measured for this package yet.
People & History
Show 9 more contributors
Show 11 more copyright holders
8 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 0.2.5Latest
- 0.2.42025-11-27 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.2.32022-11-13 · diff ↗
- 0.2.22022-11-09 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.2.12021-12-21 · diff ↗
- 0.22021-12-15 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 0.1.22020-06-08 · diff ↗
- 0.1.12020-06-04
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2020-06-04
- Total releases
- 8 / 6 yrs
- License
- MPL-2.0 OSI
- Minimum R
- ≥ 2.10
- Download size
- 2.9 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet