A Python 3 wrapper for Lemmagen lemmatizer supporting 19 languages.
Low maintenance activity. Last release 6 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install lemmagen3README as published on PyPI with version 3.5.2.
About
lemmagen3 is a Python 2/3 wrapper for the Lemmagen lemmatizer (version 2.2).
It is different from other Lemmagen wrappers like this one on PyPi because it offers a clean, fast OO interface built with the excellent pybind11 library and supports an additional language (Croatian).
Models for Slovene, Croatian and Serbian are significantly updated and make use of frequency data to prefer most frequent lemmas, e.g., for Slovene: je->biti instead of je->jesti, mene->jaz instead od mene->mena, od->od instead of od->oda etc.
In total, 19 languages are supported:
- Bulgarian:
bg - Croatian:
hr - Czech:
cs - English:
en - Estonian:
et - Farsi/Persian:
fa - French:
fr - German:
de - Hungarian:
hu - Italian:
it - Macedonian:
mk - Polish:
pl - Romanian:
ro - Russian:
ru - Serbian:
sr - Slovak:
sk - Slovene:
sl - Spanish:
es - Ukrainian:
uk
Installation and requirements
pip install lemmagen3
will install the module and language model files. Please note that on python <=3.5 and python 2.7 the package will be built from source so you will need a C++ compiler.
Note: If you use python 3.5.0 or you will likely get the error shown below. This is a known bug in these two versions so please consider upgrading your Python.