Skip to main content

A rule-based morphological analyzer for the Uzbek language based on CSE (Complete Set of Endings) and annotated morphological tags

Project description

uzmorph - Uzbek Rule-based Morphological Analyzer using CSE

uzmorph is a professional morphological analyzer for the Uzbek language based on CSE (Complete Set of Endings) rules and comprehensive morphological tagging. It provides deep linguistic analysis by identifying stems, lemmas, and a wide array of annotated morphological features.

You can try the live demo here: Hugging Face Space

Key Features

  • CSE-Based Analysis: Employs advanced suffix stripping rules (Complete Set of Endings) for precise morphological segmentation.
  • Rich Morphological Tagging: Extracts detailed features including part-of-speech (POS), tense, person, possession, case, and voice.
  • Flat JSON Output: Returns analysis results in a developer-friendly, flattened JSON-compatible format.

Installation

pip install uzmorph

Quick Start

from uzmorph import UzMorph

# Initialize the analyzer
analyzer = UzMorph()

# Analyze a word
results = analyzer.analyze("maktabimda")

# Formatted console print
analyzer.print_result(results)

JSON Result Sample

Each analysis result is a dictionary containing the following structure:

[
    {
        "word": "maktabimda",
        "stem": "maktab",
        "lemma": "maktab",
        "cse": "imda",
        "cse_formula": "(i)mda",
        "pos": "NOUN",
        "possession": "1",
        "cases": "Locative",
        "singular": "1",
        "syntactical_affixes": "(i)m da",
        "note": null,
        "ball": 108
    }
]

API Reference

UzMorph Class

  • analyze(word, pos_filter=None): Performs morphological analysis and returns a list of results.
  • print_result(results): Prints formatted output to the console.
  • get_pos_list(): Returns a formatted string of all available POS tags.
  • get_features_list(): Returns a list of all possible property keys in the result.

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 Distribution

uzmorph-1.1.8.tar.gz (32.7 kB view details)

Uploaded Source

Built Distribution

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

uzmorph-1.1.8-py3-none-any.whl (32.5 kB view details)

Uploaded Python 3

File details

Details for the file uzmorph-1.1.8.tar.gz.

File metadata

  • Download URL: uzmorph-1.1.8.tar.gz
  • Upload date:
  • Size: 32.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for uzmorph-1.1.8.tar.gz
Algorithm Hash digest
SHA256 6fb59526ca35d229851ee839ae41cb9393a88e8c1dc3f7c6f0f0b3acd413573e
MD5 4ba2d45de810089a729a5f59bc709246
BLAKE2b-256 7939470e91515854678dc4c355f43a24d31ade10dd2ad815823b504172b1a742

See more details on using hashes here.

File details

Details for the file uzmorph-1.1.8-py3-none-any.whl.

File metadata

  • Download URL: uzmorph-1.1.8-py3-none-any.whl
  • Upload date:
  • Size: 32.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for uzmorph-1.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 499f7ad6b0f004557ff377481c8857779e59efbd33657cb7aee2cd7ceeb7cb86
MD5 27706db88e3c4c970e7d84bd1662b92f
BLAKE2b-256 4e8bbadb39f58a59274c39f37f99b90450fe3c26cf601399fa8d38e17a611212

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