# SentencePiece — card for AI agents

Unsupervised text tokenizer and detokenizer from Google for natural language processing.

Category: Prompts, structured output and evals · PyPI package `sentencepiece` · latest version 0.2.2 (checked 2026-11-01)
Install: `pip install sentencepiece`
License: Apache-2.0 (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Agent Skills for it
- sentencepiece from Orchestra-Research/AI-Research-SKILLs: `npx skills add Orchestra-Research/AI-Research-SKILLs --skill sentencepiece`

## Numbers (AgentGid data)
- Gid Score: 65.3 (#663 of all tools, 3 of 78 in its category)
- Used in 5 public projects set up for AI coding agents (0.1%)
- Downloads last week: 7,181,827 (as of 2026-11-24), +5.7% over 4 weeks
- GitHub stars: 12,179 (as of 2026-11-24)
- Last push: 2026-11-24

## Often used with
NumPy 89.2%, Hugging Face Transformers 84.8%, pandas 83.3%, PyTorch 82.4%, tqdm 80.9%, Requests 77.0%

## Checked alternatives (same job)
- tiktoken (Python): https://agentgid.com/tools/tiktoken-pypi/agent.md
- tokenizers: https://agentgid.com/tools/tokenizers/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/sentencepiece/
- Homepage: https://github.com/google/sentencepiece
- Repository: https://github.com/google/sentencepiece

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
