#393393rd of 433 in ML frameworks and libraries

hazm

Python library for Persian text normalization, tokenization, tagging and parsing

Stars
1.4k
License
MIT
Last commit
Apr 2026
Last release
Apr 2026
Language
Python
Stars, last 29 weeks+59
6 May 2026: 1,378 stars13 May 2026: 1,382 stars20 May 2026: 1,384 stars27 May 2026: 1,386 stars3 Jun 2026: 1,389 stars10 Jun 2026: 1,390 stars17 Jun 2026: 1,393 stars24 Jun 2026: 1,394 stars1 Jul 2026: 1,399 stars8 Jul 2026: 1,402 stars15 Jul 2026: 1,403 stars22 Jul 2026: 1,405 stars29 Jul 2026: 1,405 stars5 Aug 2026: 1,408 stars12 Aug 2026: 1,410 stars19 Aug 2026: 1,412 stars26 Aug 2026: 1,413 stars2 Sept 2026: 1,417 stars9 Sept 2026: 1,417 stars16 Sept 2026: 1,420 stars23 Sept 2026: 1,423 stars30 Sept 2026: 1,426 stars7 Oct 2026: 1,427 stars14 Oct 2026: 1,428 stars21 Oct 2026: 1,430 stars28 Oct 2026: 1,431 stars4 Nov 2026: 1,433 stars11 Nov 2026: 1,435 stars18 Nov 2026: 1,436 stars25 Nov 2026: 1,437 stars

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
Also in ML frameworks and libraries
RankProjectScore
#391audiofluxC library with Python bindings for audio time-frequency transforms and feature extraction3.4k starsMIT22 out of 100
#392pmdarimaPython auto-ARIMA time series forecasting library with a scikit-learn style API1.7k starsMITno commits in a year22 out of 100
#394kapreKeras layers that compute STFT and mel-spectrograms on GPU inside the model947 starsMIT22 out of 100
#395deep-person-reidPyTorch library for training and evaluating person re-identification models5k starsMIT21 out of 100
#396hierarchical-localizationPython toolbox for 6-DoF visual localization and Structure-from-Motion Live demo ↗ (opens in a new tab)4.3k starsApache-2.021 out of 100