Skip to main content

Python bindings for libmorph::rus

Project description

pyrusmorph

Python bindings for libmorph::rus - russian morphological analyses library.

Installation

pip install pyrusmorph

Usage

import pyrusmorph

imorph = pyrusmorph.mlmaruWc()

lemmas = imorph.lemmatize('простой', 0)
if len(lemmas) != 0:
    for lemm in lemmas:
        print(f"  {lemm.lexid:<6d}  {lemm.lemma}")

        for gram in lemm.grams:
            print(f"    {partOfSpeech[gram.wdInfo & 0x3f]}  {gram.idForm:2d}")
else:
    print("unknown word")

Requirements

Python 3.8+ Linux x86_64

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyrusmorph-4.1.2026.4-cp312-cp312-manylinux2014_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.12

pyrusmorph-4.1.2026.4-cp311-cp311-manylinux2014_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.11

pyrusmorph-4.1.2026.4-cp310-cp310-manylinux2014_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.10

pyrusmorph-4.1.2026.4-cp39-cp39-manylinux2014_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.9

pyrusmorph-4.1.2026.4-cp38-cp38-manylinux2014_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.8

File details

Details for the file pyrusmorph-4.1.2026.4-cp312-cp312-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyrusmorph-4.1.2026.4-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 02fdb3a23180572237053bf037e31807ed90cccc717ad534aad68a3b0a80ebb0
MD5 79c9dcdbfd947b03e4b02064ea95c8c1
BLAKE2b-256 a285f9ca3977833997dc2478985f0d98bff37d04eed49e947fd3cc8e83ce1767

See more details on using hashes here.

File details

Details for the file pyrusmorph-4.1.2026.4-cp311-cp311-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyrusmorph-4.1.2026.4-cp311-cp311-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c005392ff9cbbd291199c108765ae0df171dd7ef141b165a0f1ac28455ec5ec0
MD5 5d2a47ad0a8bbf6a2401025a12fa6153
BLAKE2b-256 ee178c0658a5214a965c290214578b0a98e5e4354e7375e3f12ec24f4c36a6d1

See more details on using hashes here.

File details

Details for the file pyrusmorph-4.1.2026.4-cp310-cp310-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyrusmorph-4.1.2026.4-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b105765f4da6cd75a8cb858f36375d8d8b694c8d1b6f5920cddc8a14008d7d4b
MD5 bbbf7c214c023c127483c39174601968
BLAKE2b-256 6e71fc7a38c128e8fb439e222aa219df8396b0fde55d5649ebadda5f671badec

See more details on using hashes here.

File details

Details for the file pyrusmorph-4.1.2026.4-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyrusmorph-4.1.2026.4-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9595948c5f5c790ed7fcc294c3f7939da54dbe4631d1463cd0a8813d1cb99ba6
MD5 e9111a2efeb21383f1c30fc54cf2ee35
BLAKE2b-256 6efd2774bddb07d61187b957e0dfdb0dde1018fbfc01480bd5dda7cd83528a99

See more details on using hashes here.

File details

Details for the file pyrusmorph-4.1.2026.4-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyrusmorph-4.1.2026.4-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 48bc36df61fa75ca01909cb9167361b12e075b84dc8f3b87446102d9177113ea
MD5 de60501a3764433411e2e9f61217a5c6
BLAKE2b-256 b98c7678074e72823c43e57c1f7abf2ad1f0c8099e66b434fa11eafd8f13265f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page