Instructions to use O96a/sudanizer-72k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use O96a/sudanizer-72k with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("O96a/sudanizer-72k", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- πΈπ© Sudanizer: Sudanese Arabic BPE Tokenizer
- π― Mission
- Model Description
- π Quick Start
- Training Details
- π For the Sudanese Community
- Comparison with Other Tokenizers
- Citation
- If you use this tokenizer in your research, please cite:
bibtex @misc{sudanizer2026, title={Sudanizer: A Production-Ready BPE Tokenizer for Sudanese Arabic}, author={Mihaysi, Aamer}, year={2026}, howpublished={\url{https://huggingface.co/O96a/sudanizer-72k}} }## License MIT License β This work belongs to the Sudanese NLP community. ## Acknowledgments - Creator: Aamer Mihaysi - Initiative: Sudaverse - HuggingFace for the tokenizers library - Contributors to Sudanese Arabic corpora ## Contact For questions or contributions, please contact via Sudaverse.
- π― Mission
πΈπ© Sudanizer: Sudanese Arabic BPE Tokenizer
Creator: O96a
Initiative: Sudaverse
For the Sudanese NLP Community
π― Mission
This tokenizer is part of the Sudaverse initiative dedicated to preserving Sudanese linguistic heritage and advancing Sudanese NLP. Developed specifically for the Sudanese Arabic dialect to ensure our language is properly represented in AI systems.
Model Description
Sudanizer is a production-ready Byte-Pair Encoding (BPE) tokenizer trained on ~49 million words of authentic Sudanese dialect text. It recognizes words and expressions unique to Sudanese culture and communication.
Key Features
- Vocabulary Size: 72,000 tokens
- Algorithm: BPE with ByteLevel pre-tokenization
- Dialect-Specific: Optimized for Sudanese Arabic patterns
- Arabic-Aware: Handles clitics, prefixes, suffixes, emojis
- Normalization: Sudanese orthographic variants (ΩΨ―ΩβΩΨ―Ψ§, Ψ―ΩβΨ―Ψ§, etc.)
Performance Metrics
| Metric | Value |
|---|---|
| Average Characters per Token | 4.536 |
| Compression Ratio | 0.2205 |
| UNK Rate | 0.0000% |
| Avg Subwords per Word | 1.159 |
| Vocabulary Size | 72,000 |
π Quick Start
# Load tokenizer
tokenizer = PreTrainedTokenizerFast.from_pretrained("O96a/sudanizer-72k")
# Tokenize Sudanese text
text = "ΩΩ Ω
ΨΊΨ§ΩΨ·ΩΩ Ψ§Ψ±Ψ ΩΨ§ΩΨ§ ΩΩΩ"
tokens = tokenizer.encode(text)
print(f"Tokens: {tokens}")
# Decode back
decoded = tokenizer.decode(tokens)
print(f"Decoded: {decoded}")
# Get token strings
token_strs = tokenizer.tokenize(text)
print(f"Token strings: {token_strs}")
Training Details
Configuration
- Tokenizer Version: 1.0.0
- Minimum Token Frequency: 3
- Pre-tokenization: ByteLevel (Arabic-optimized)
- Normalization: NFKC + Sudanese dialect normalization
- Corpus Domain: social+stories+youtube+qa
Special Tokens
| Token | Purpose | ID |
|---|---|---|
<pad> |
Padding | 0 |
<unk> |
Unknown | 1 |
<s> |
Start of sequence (BOS) | 2 |
</s> |
End of sequence (EOS) | 3 |
<mask> |
Mask token (MLM) | 4 |
<user> |
User message marker | 5 |
<assistant> |
Assistant message marker | 6 |
<system> |
System message marker | 7 |
π For the Sudanese Community
β Intended Use:
- Sudanese Arabic NLP research & development
- Building Sudanese AI assistants and chatbots
- Fine-tuning models on Sudanese data
- Preserving Sudanese linguistic heritage
- Educational purposes for Sudanese language technology
β οΈ Attribution Required: This work is developed by Aamer Mihaysi as part of the Sudaverse initiative for the Sudanese NLP community. When using this tokenizer, please cite appropriately and acknowledge the Sudaverse project.
Comparison with Other Tokenizers
Sudanizer is designed to outperform general Arabic tokenizers on Sudanese text:
Benchmark Tokenizers Tested
- Aranizer-SP-64k (riotu-lab) β SentencePiece tokenizer tailored for Arabic (~64K vocab)
- Aranizer-PBE-64k (riotu-lab) β PBE version optimized for Arabic morphology
- arabic-bpe-tokenizer (IsmaelMousa) β Standard BPE for Arabic (~50K vocab)
- SARF-Tokenizer (almaghrabima) β Morphologically-aware tokenizer with morpheme segmentation
- deeplatent-tokenizer (almaghrabima) β SARF-based bilingual tokenizer
- AraBERTv2 β General Arabic BERT tokenizer
- CAMeLBERT-Mix β Mixed Arabic dialect tokenizer
| Tokenizer | Sudanese Chars/Token | UNK Rate |
|---|---|---|
| Sudanizer-72K-v2 (this) | 4.54 | 0.00% |
| AraBERTv2 | ~3.5 | Higher |
| CAMeL-BERT | ~3.2 | Higher |
| Aranizers | ~3.0-3.5 | Moderate |
Citation
If you use this tokenizer in your research, please cite:
bibtex @misc{sudanizer2026, title={Sudanizer: A Production-Ready BPE Tokenizer for Sudanese Arabic}, author={Mihaysi, Aamer}, year={2026}, howpublished={\url{https://huggingface.co/O96a/sudanizer-72k}} }
## License
MIT License β This work belongs to the Sudanese NLP community.
## Acknowledgments
- Creator: Aamer Mihaysi
- Initiative: Sudaverse
- HuggingFace for the tokenizers library
- Contributors to Sudanese Arabic corpora
## Contact
For questions or contributions, please contact via Sudaverse.
Made with π for Sudan. This work belongs to the Sudanese NLP community.