Skip to content

Releases: roshan-research/hazm

Hazm 0.12.1

Choose a tag to compare

@ayub-kokabi ayub-kokabi released this 01 Apr 18:46

Fixed

  • Normalizer: Resolved a TypeError: argument of type 'NoneType' is not iterable in the token_spacing method. This occurred when correct_spacing was enabled but seperate_mi was disabled, causing the internal verb list to remain uninitialized as None.
  • WordTokenizer: Resolved an AttributeError where internal markers like before_verbs and after_verbs were missing if the tokenizer was initialized with join_verb_parts=False. These attributes are now safely initialized as empty sets by default.

Hazm 0.12.0

Choose a tag to compare

@ayub-kokabi ayub-kokabi released this 01 Apr 14:50
8e4d72c

⚠️ Notice: A critical bug present in v0.11.0 was inadvertently included in this release. Please upgrade to v0.12.1 immediately for the fix.

  • Added optional dependencies support: Introduced separate installation modes to reduce package size and installation time.
    • Base Installation: pip install hazm now installs only core dependencies for lightweight usage.
    • Full Installation: pip install hazm[all] installs all optional dependencies for complete functionality.

Hazm 0.11.0

Choose a tag to compare

@ayub-kokabi ayub-kokabi released this 20 Dec 10:54
35a5f06
  • Fixed compatibility issues with Python 3.12; the library is now compatible with Python 3.12 and 3.13.
  • Resolved installation issues in Google Colab and other environments.
  • Added support for downloading models directly from Hugging Face.
  • Rewrite all documentation in English.
  • Various improvements and bug fixes.

Thanks to everyone who reported issues and helped make Hazm better!

Hazm 0.10.0

Choose a tag to compare

@ayub-kokabi ayub-kokabi released this 16 Jan 16:49
270e897
  • Added SpacyPOSTagger class for utilizing the hazm deep learning transformer-based model in POS tagging. @MortezaMahdaviMortazavi
  • Added SpacyChunker class for leveraging the hazm deep learning transformer-based model in chunking. @MortezaMahdaviMortazavi
  • Added SpacyDependencyParser class for employing the hazm deep learning transformer-based model in dependency parsing. @MortezaMahdaviMortazavi
  • Added 160,000 new words to improve normalizer and lemmatizer. @sir-kokabi
  • Added FaSpellReader to read FAspell corpus. @sir-kokabi
  • Added ArmanReader to read ArmanPersoNERCorpus. @sir-kokabi
  • Added PnSummaryReader to read pn-summary corpus. @sir-kokabi
  • Removed unnecessary old Stanford dependencies.. @sir-kokabi

Download pretrained-models

Full Changelog: v0.9.4...v0.10.0

Hazm 0.9.4

Choose a tag to compare

@ayub-kokabi ayub-kokabi released this 01 Oct 20:12
  • Added join_abbreviations to skip abbrs tokenizing using ParsiNorm's abbreviation lists. #216 @optimopium @sir-kokabi.
  • Added MizanReader to read Mizan corpus. @sir-kokabi.
  • Added NaabReader to read Naab corpus. @sir-kokabi.
  • Added NerReader to read NER corpus. @sir-kokabi.
  • Improved Normalizer by adding support for normalizing words with the suffix 'هایی'. @sir-kokabi.
  • Fixed #298: Incompatibility issues with numpy. @mhdi707 @sir-kokabi

Download pretrained-models

Full Changelog: v0.9.3...v0.9.4

Hazm 0.9.3

Choose a tag to compare

@ayub-kokabi ayub-kokabi released this 19 Jul 15:25

Fixed

  • Fix critical bug in Lemmatizer that caused incorrect lemmatization of certain words. @sir-kokabi.
  • Fix bug caused WikipediaReader to not work as before #287. @sir-kokabi.
  • Fix missing imports for WikipediaReaderand PersianPlainTextReader #286. @sir-kokabi.
  • Fix some issues in the demo to make it compatible with the latest version of Hazm. @sir-kokabi.
  • Fix a few issues related to tests and mkdocs build. @sir-kokabi.
  • Improve documentation. @sir-kokabi.
  • improve dependency tree visualization on the demo page. @sir-kokabi.

Download pretrained-models

Full Changelog: v0.9.2...v0.9.3

Hazm 0.9.2

Choose a tag to compare

@ayub-kokabi ayub-kokabi released this 08 Jul 12:48

Added

Fixed

Download pretrained-models

Full Changelog: v0.9...v0.9.2

Hazm 0.9

Choose a tag to compare

@ayub-kokabi ayub-kokabi released this 20 May 15:48
548c4b1

Added

  • Windows compaitiblity by using Python-crfsuite instead of Wapiti. @E-Ghafour.
  • Pretrained Chunker and POSTagger models with Python-crfsuite. @E-Ghafour.
  • new parameters in Normalizer to better text processing. @sir-kokabi.
  • Three regex patterns in Normalizer to fix ZWNJs and spacing issues. @sir-kokabi.
  • 400 Non-standard unicode characters to be replaced in Normalizer. @sir-kokabi.
  • 40,000+ new words to improve Lemmatizer and Tokenizer. @sir-kokabi.
  • train function for Word2vec and Sent2vec modules in Embedding. @E-Ghafour.
  • Implement keywordExtraction with the embedRank approach as a sample of Hazm usage. @E-Ghafour.
  • Support Universal tags in POSTagger. @E-Ghafour.
  • Support universal POS mapper in PeykareReader & DadeganReader (#239). @phsfr.
  • PersianPlainTextReader to process raw text datasets (#120). @mhbashari.
  • Support EZ tag in PeykareReader. @E-Ghafour.
  • Slash & back-slash (/ ) support in Tokenizer (#102). @elahimanesh.
  • Conjugation class to handle verb conjugation. @sir-kokabi.

Fixed

  • Improve the accuracy of POSTagger and Chunker. @E-Ghafour.
  • Improve InformalNormalizer #219. @riasati.
  • Fix pep8 issues. (#135). @hadifar.
  • Fix Some tests issues. @sir-kokabi @E-Ghafour.
  • Fix Stemmer issues with multiple suffixes. @sir-kokabi.
  • Fix various reported issues

Changed

  • Drop Python 2 support and migrate all code to Python 3. @sir-kokabi.
  • Use data_maker function instead of patterns in SequenceTagger. @E-Ghafour.
  • Refactor IOBTagger and POSTagger to be compatible with data_maker. @E_Ghafour.
  • Change می روم to می‌روم in example (#203). @SMSadegh19.
  • Overhaul the project structure and GitHub repo. @sir-kokabi.

Download Pretrained models

Full Changelog: v0.8.2...v0.9

Hazm 0.8

Choose a tag to compare

@imani imani released this 29 Nov 12:03

Release notes:

  • Add WordEmbedding (Download the pre-trained model(Fasttext) from here)
  • Add SentenceEmbedding (Download the pre-trained model from here)
  • Add Documentation webpage (link)
  • Improve normalizer, informal normalizer, and tokenizer
  • Add Degarbayan and MirasText corpus reader

What's Changed

New Contributors

Full Changelog: v0.7...v0.8.2

Hazm 0.7

Choose a tag to compare

@nournia nournia released this 12 Oct 12:03
v0.7

update release version