#393393rd of 433 in ML frameworks and libraries
hazm
Python library for Persian text normalization, tokenization, tagging and parsing
Watch puts hazm on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.hazm is on your watch list. Its new releases and problems show there.
- Stars
- 1.4k
- License
- MIT
- Last commit
- Apr 2026
- Last release
- Apr 2026
- Language
- Python
1,378 on 6 May 20261,437 on 25 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Hazm is a Python library for Persian NLP. It covers normalization (diacritics, ZWNJ correction), sentence and word tokenization, stemming, lemmatization, POS tagging, chunking, dependency parsing, and word and sentence embeddings. Pretrained models download from Hugging Face on first use, and it includes readers for common Persian corpora.
Who it is for: Python developers building Persian-language NLP pipelines
Strengths
- Covers the full Persian pipeline: normalizer, tokenizers, lemmatizer, tagger, chunker, parser
- Pretrained models auto-download and cache from Hugging Face by repo_id
- README reports POS tagger 98.8% and chunker 93.4% accuracy
- Includes spaCy-based tagger, chunker and parser variants with published metrics
Weaknesses
- Persian only; no support for other languages
- Requires Python 3.12+, which excludes older environments
- Tagger, chunker, parser and embeddings need separate model downloads plus huggingface-hub
- Dependency parser accuracy (85.6%) is well below the POS tagger's
What it needs
- Needs Python 3.12+, huggingface-hub
- Models: fastText, sent2vec, spaCy
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in ML frameworks and libraries
See all 433| Rank | Project | Score |
|---|---|---|
| #391 | audiofluxC library with Python bindings for audio time-frequency transforms and feature extraction | 22 out of 100 |
| #392 | pmdarimaPython auto-ARIMA time series forecasting library with a scikit-learn style API | 22 out of 100 |
| #394 | kapreKeras layers that compute STFT and mel-spectrograms on GPU inside the model | 22 out of 100 |
| #395 | deep-person-reidPyTorch library for training and evaluating person re-identification models | 21 out of 100 |
| #396 | hierarchical-localizationPython toolbox for 6-DoF visual localization and Structure-from-Motion | 21 out of 100 |