google/sentencepiece
Unsupervised text tokenizer for Neural Network-based text generation. observed · 2026-10-15
Health v2 · maintenance only
83/100
- Activity 99
- Release rhythm 53
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 334
- age_days: 3514
- days_rel: 100
- days_push: 7
- n_releases_24m: 2
Adoption not part of the score
12132 stars · 1385 forks observed · 2026-10-15
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
SentencePiece is a fast, lightweight unsupervised text tokenizer and detokenizer for neural network-based text generation systems, implementing BPE and unigram language model subword segmentation. It trains directly from raw sentences without language-specific pre- or post-processing, making it language-independent and end-to-end.
Use cases
- train a subword tokenizer for an LLM from raw text
- tokenize text into subword pieces for neural machine translation
- encode and decode text with a fixed vocabulary size
- segment words in languages without whitespace delimiters
- build a language-independent preprocessing pipeline for NLP models
When to choose
- you need a fixed-vocabulary tokenizer trained directly on raw sentences
- you want language-agnostic tokenization without pre-tokenization rules
- you need BPE or unigram subword models used by LLMs like LLaMA and T5
When to avoid
- you need a tokenizer for a pretrained model with a different tokenizer format (e.g., WordPiece)
- you only need simple whitespace or rule-based word splitting
Facets
library · maturity stable
nlp parser machine-learning llm-training machine-learning large-language-models cpp python cross-platform tokenizer subword-tokenization bpe unigram-language-model detokenizer neural-machine-translation natural-language-processing
1 source
- readme: https://github.com/google/sentencepiece · fetched 2026-10-15 · 17213789ebd6
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| google/sentencepiece | main | 83 |
For agents
markdown · JSON · MCP: product_card(name="google/sentencepiece")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem