Releases: roshan-research/hazm
Releases · roshan-research/hazm
Release list
Hazm 0.12.1
Fixed
- Normalizer: Resolved a
TypeError: argument of type 'NoneType' is not iterablein thetoken_spacingmethod. This occurred whencorrect_spacingwas enabled butseperate_miwas disabled, causing the internal verb list to remain uninitialized asNone. - WordTokenizer: Resolved an
AttributeErrorwhere internal markers likebefore_verbsandafter_verbswere missing if the tokenizer was initialized withjoin_verb_parts=False. These attributes are now safely initialized as empty sets by default.
Hazm 0.12.0
- Added optional dependencies support: Introduced separate installation modes to reduce package size and installation time.
- Base Installation:
pip install hazmnow installs only core dependencies for lightweight usage. - Full Installation:
pip install hazm[all]installs all optional dependencies for complete functionality.
- Base Installation:
Hazm 0.11.0
- 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
- Added
SpacyPOSTaggerclass for utilizing the hazm deep learning transformer-based model in POS tagging. @MortezaMahdaviMortazavi - Added
SpacyChunkerclass for leveraging the hazm deep learning transformer-based model in chunking. @MortezaMahdaviMortazavi - Added
SpacyDependencyParserclass for employing the hazm deep learning transformer-based model in dependency parsing. @MortezaMahdaviMortazavi - Added 160,000 new words to improve
normalizerandlemmatizer. @sir-kokabi - Added
FaSpellReaderto read FAspell corpus. @sir-kokabi - Added
ArmanReaderto read ArmanPersoNERCorpus. @sir-kokabi - Added
PnSummaryReaderto read pn-summary corpus. @sir-kokabi - Removed unnecessary old Stanford dependencies.. @sir-kokabi
Full Changelog: v0.9.4...v0.10.0
Hazm 0.9.4
- Added
join_abbreviationsto skip abbrs tokenizing using ParsiNorm's abbreviation lists. #216 @optimopium @sir-kokabi. - Added
MizanReaderto read Mizan corpus. @sir-kokabi. - Added
NaabReaderto read Naab corpus. @sir-kokabi. - Added
NerReaderto read NER corpus. @sir-kokabi. - Improved
Normalizerby adding support for normalizing words with the suffix 'هایی'. @sir-kokabi. - Fixed #298: Incompatibility issues with numpy. @mhdi707 @sir-kokabi
Full Changelog: v0.9.3...v0.9.4
Hazm 0.9.3
Fixed
- Fix critical bug in
Lemmatizerthat caused incorrect lemmatization of certain words. @sir-kokabi. - Fix bug caused
WikipediaReaderto not work as before #287. @sir-kokabi. - Fix missing imports for
WikipediaReaderandPersianPlainTextReader#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.
Full Changelog: v0.9.2...v0.9.3
Hazm 0.9.2
Added
- Add pretrained
DependencyParsermodels. @E-Ghafour. - Add
UniversalDadeganReaderclass for process and read Universal Persian Dependency Treebank corpus. @E-Ghafour, @imani. - Add 400+ new words to improve
Normalizer,LemmatizerandTokenizer. @sir-kokabi.
Fixed
- Fix
DependencyParserissue #282. @E-Ghafour, @imani. - Fix Some tests issues. @E-Ghafour.
Full Changelog: v0.9...v0.9.2
Hazm 0.9
Added
- Windows compaitiblity by using
Python-crfsuiteinstead ofWapiti. @E-Ghafour. - Pretrained
ChunkerandPOSTaggermodels withPython-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
LemmatizerandTokenizer. @sir-kokabi. trainfunction forWord2vecandSent2vecmodules inEmbedding. @E-Ghafour.- Implement
keywordExtractionwith theembedRankapproach as a sample of Hazm usage. @E-Ghafour. - Support
Universal tagsinPOSTagger. @E-Ghafour. - Support universal POS mapper in
PeykareReader&DadeganReader(#239). @phsfr. PersianPlainTextReaderto process raw text datasets (#120). @mhbashari.- Support
EZtag inPeykareReader. @E-Ghafour. - Slash & back-slash (/ ) support in
Tokenizer(#102). @elahimanesh. Conjugationclass to handle verb conjugation. @sir-kokabi.
Fixed
- Improve the accuracy of
POSTaggerandChunker. @E-Ghafour. - Improve
InformalNormalizer#219. @riasati. - Fix pep8 issues. (#135). @hadifar.
- Fix Some tests issues. @sir-kokabi @E-Ghafour.
- Fix
Stemmerissues 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_makerfunction instead ofpatternsinSequenceTagger. @E-Ghafour. - Refactor
IOBTaggerandPOSTaggerto be compatible withdata_maker. @E_Ghafour. - Change می روم to میروم in example (#203). @SMSadegh19.
- Overhaul the project structure and GitHub repo. @sir-kokabi.
Full Changelog: v0.8.2...v0.9
Hazm 0.8
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
- fixed MAGHSURAH Y bug in normalizer by @mavahedinia in #116
- change list to set in stopwords_list method to remove duplicate stop … by @Azdy-dev in #175
- Add Degarbayan interface by @maanijou in #176
- fix endless loop in python3 by @mohamad-qodosi in #186
- Update README.md by @edalatfard in #187
- Fix self.words in WordTokenizer by @SinRas in #190
- Fix some tokenization issues by @behnam-sa in #199
- Modifying the extra space and newline removal patterns by @asdoost in #200
- improvement of InformalNormalizer by @riasati in #214
- add some rules to InformalNormalizer by @riasati in #215
- Embedding by @E-Ghafour in #229
- Embedding by @imani in #230
New Contributors
- @mavahedinia made their first contribution in #116
- @Azdy-dev made their first contribution in #175
- @maanijou made their first contribution in #176
- @mohamad-qodosi made their first contribution in #186
- @edalatfard made their first contribution in #187
- @SinRas made their first contribution in #190
- @behnam-sa made their first contribution in #199
- @asdoost made their first contribution in #200
- @riasati made their first contribution in #214
- @E-Ghafour made their first contribution in #229
- @imani made their first contribution in #230
Full Changelog: v0.7...v0.8.2