Skip to main content

Morphological analyzer for Russian, English and German languages.

This is a python wrapper for C++ morphology library that was created in 2000 (many years ago) for website aot.ru. The original library was written in C++, so we have to compile it and integrate with python using pybind11. The dictionaries are rather outdated, but I use them for some modern projects, that's why I decided to share the project with other people.

License is MIT.

The project is distributed in (sources)[https://github.com/sokirko74/pylem], you have to install cmake and modern C++ (17) compiler to your workstation.

Install

Normally you could install the project with python -m pip install pylem but if it does not work install it using the following steps:

  1. download and unpack sources
  2. run python setup.py install

Using the library

To search word mother in the English dictionary one should write the following code:

from pylem import MorphanHolder, MorphLanguage

h = MorphanHolder(MorphLanguage.English) #load dicts from disk

print(h.is_in_dictionary("mother"))

Other usages are covered by unittests

Release files for pylem 0.0.18

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pylem 0.0.18
File Size Uploaded
pylem-0.0.18.tar.gz 8.0 MB Details

Release files / pylem-0.0.18.tar.gz

Download URL pylem-0.0.18.tar.gz
Size 8.0 MB
Tags Source
SHA-256 checksum
How to use checksums
66c0d13414006a803f200979540fcee9653738701c14496a418db67542b26515
BLAKE2b-256 checksum
How to use checksums
a46d5242171bda876f172ba3190337c35d81a23958f070a3b50dbe0e2643b739
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.8.0 tqdm/4.62.3 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.18 This release

1 release file

0.0.17

1 release file

0.0.15

1 release file

0.0.13

1 release file

0.0.12

1 release file

0.0.11

1 release file

0.0.10

1 release file

0.0.9

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page