Registry / data / pymorphy3-dicts-uk

pymorphy3-dicts-uk

JSON →
library2.4.1.1.1663094765pypypi✓ verified 82d ago

Ukrainian morphological dictionary data for the pymorphy3 morphological analyzer. Version 2.4.1.1.1663094765 provides dictionaries for Ukrainian language analysis (part of speech tagging, lemma generation, inflection). Released sporadically.

pip install pymorphy3-dicts-uk
INSTALL
IMPORT
SIG · PYMORPHY3-DICTS-UK
P
pymorphy3-dicts-uk
datapythonv2.4.1.1.1663094765
Install
1.8s avg
Import
Disk
30MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.4.1.1.1663094765 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 31.7MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.8s · import 0.000s · 32MB
30MB installed
● package 30MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

get_path
from pymorphy3_dicts_uk import get_path
from pymorphy3 import MorphAnalyzer

Parses a Ukrainian word to get its normal form and part of speech tag.

""" Basic usage of pymorphy3 with Ukrainian dictionaries. """ import pymorphy3 from pymorphy3 import MorphAnalyzer # Initialize analyzer with Ukrainian dictionary (automatically uses the installed dict) morph = MorphAnalyzer(lang='uk') # Parse a word parse = morph.parse('кицька') if parse: word = parse[0] print(f"Normal form: {word.normal_form}") print(f"Part of speech: {word.tag.POS}") else: print("Word not recognized.")
Debug
Known issues
gotchaThe dictionary package pymorphy3-dicts-uk must be installed separately; it is NOT automatically pulled by pymorphy3. Forgetting to install it results in a RuntimeError: ``Failed to load dictionary for language 'uk'``.
fix
Run 'pip install pymorphy3-dicts-uk'.
affects: all
deprecatedVersions prior to 2.4 use an older dictionary format. pymorphy3 2.x requires dictionary version matching the library. If you get import errors or 'Unknown format version', upgrade both.
fix
Upgrade: pip install --upgrade pymorphy3 pymorphy3-dicts-uk
affects: pymorphy3 < 2.4
gotchaLoading an analyzer with lang='uk' without first verifying the dictionary is installed does not raise an error until parsing is attempted. This can mislead users into thinking setup succeeded.
fix
After creating MorphAnalyzer(lang='uk'), call morph.word_is_known('тест') to confirm dictionaries are loaded.
affects: all
Upgrade
Version history
2.4.1.1.1663094765latest on PyPI · released Sep 13, 2022
Audit
Dependencies
pymorphy3requiredRequires pymorphy3 >= 2.0 to actually use the dictionaries. The -dicts package only provides data.
Agent activity
7 hits · last 30 days
node
6
Resources
pymorphy3-dicts-uk — pip install pymorphy3-dicts-uk · libregistry