Data, Corpora & Tokenization · 2018

SentencePiece

Taku Kudo, John Richardson

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

Descendants

Source record

Provenance

Record ID
P-120
Record created
2026-07-13
Last reviewed
2026-07-14
Record version
2

Citation caveat: Citation metadata is approximate and marked unverified in the source dataset.