google/sentencepiece

Unsupervised text tokenizer for Neural Network-based text generation.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 18 minutes ago
Added to GitGenius on September 5th, 2026
Created on March 7th, 2017
Open Issues & Pull Requests: 7 (+0)
GitHub issues: Enabled
Number of forks: 1,379
Total Stargazers: 12,061 (+0)
Total Subscribers: 123 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 4.8 days
Mean response time: 76.7 days
90th percentile: 192.5 days
Tracked items: 145

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Work labelled "bug" is answered fastest, typically in about 4 days, while "Details requested" waits about 4 months. Only 10% of issues opened in the past year have been closed. Three people close 90% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 4
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 274 days
Stale 30+ days: 1
Stale 90+ days: 0

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (37)
  • Will fix in next release (33)
  • enhancement (19)
  • python (12)
  • Details requested (11)
  • v0.2.3 (10)
  • feature request (9)
  • help wanted (5)

Detailed Description

SentencePiece is an unsupervised text tokenizer designed for neural network-based text generation tasks.

The tool addresses the problem of converting raw text into tokens suitable for neural models without requiring labeled training data or language-specific rules. It implements subword tokenization through an unsupervised learning approach, training directly on raw text to discover optimal token boundaries. This method works across languages without manual intervention, making it particularly valuable for multilingual systems where language-specific tokenizers would be impractical.

Developers should choose SentencePiece when building neural machine translation systems, language models, or other neural text generation applications that need to handle multiple languages uniformly. The tool is especially suited for projects where you cannot rely on language-specific preprocessing or where you need consistent tokenization behavior across diverse writing systems. It produces both vocabulary files and model files that can be deployed independently of the training pipeline.

The project shows sustained development activity with regular updates addressing edge cases and performance improvements. Contributions span multiple areas including bug fixes, feature enhancements, and support for additional use cases. The codebase maintains backward compatibility while evolving to meet emerging requirements in neural text processing. Development discussions reflect attention to both correctness and practical deployment concerns.