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 (Complete Set of Endings)

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.

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-0.1.1.tar.gz (32.4 kB view details)

Uploaded Source

Built Distribution

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

uzmorph-0.1.1-py3-none-any.whl (32.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for uzmorph-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4d79587dde8e5ae105d09ec7ead48232ddfd91d15d0efe79a1a443d9384726a3
MD5 e444f0eea3eac39622a8f71c696a2688
BLAKE2b-256 b50b10a64a3e42245eee952737cfac8cd41fa8aa349cf85657425f7b817e4b5a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for uzmorph-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 12368f24ff55ac92be3b06343f378314df44a596b5e1c839c42756eaf672a72a
MD5 685094be62fa90c49ecb3a617797665d
BLAKE2b-256 cf85eeeb833111c6d68dab435993d5ba3e58a8273139b7fabda6fbd217a7bef2

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