Data, Corpora & Tokenization · 2018
SentencePiece
It packaged subword tokenization (BPE and unigram language-model segmentation) into a single self-contained tool that trains directly from raw untokenized text and treats input as a reversible byte/character stream, removing the dependence on language-specific pre-tokenizers and making tokenization reproducible and fully invertible across languages.
Editorial record
Plain-language summary
SentencePiece is a tokenizer that learns a subword vocabulary straight from raw text, without needing a separate word-splitting step that most earlier pipelines assumed. It escapes whitespace as a normal symbol (the underscore marker) so that tokenizing and detokenizing are exactly reversible, which matters for languages like Japanese or Chinese that do not put spaces between words. It supports both byte-pair-encoding and unigram-language-model segmentation and ships as a library with fixed, serializable models so the same text always maps to the same tokens. This standardized, language-agnostic tokenization step is now a default component in many multilingual and non-English NLP systems.
Knowledge graph
Relationships
Antecedents
CombinesEvidence: Direct
Subword Regularization / Unigram LM Tokenization
Unigram LM tokenization implemented alongside BPE
P-120
Descendants
GeneralizesEvidence: Direct
Neural Machine Translation of Rare Words with Subword Units (BPE)
SentencePiece generalizes BPE to raw text
P-120
Source record
Provenance
- Record ID
- P-120
- Record created
- 2026-07-13
- Last reviewed
- 2026-07-14
- Record version
- 2
- https://arxiv.org/abs/1808.06226
- arXiv:1808.06226
Citation caveat: Citation metadata is approximate and marked unverified in the source dataset.