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.

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.7.tar.gz (32.6 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.7-py3-none-any.whl (32.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: uzmorph-1.1.7.tar.gz
  • Upload date:
  • Size: 32.6 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.7.tar.gz
Algorithm Hash digest
SHA256 0200fbb3d47f91cee8055c1270994a6d3fef7edc259a9fec1b9504511b21230d
MD5 ebf730f0e2ebe99cdd4bb5531bc2249c
BLAKE2b-256 5b2adb79cc592df76bfff5493f6e55d76af244cb120a53abf1e5bd2fc1e966f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uzmorph-1.1.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5d91fc04c024fcada0513ddbdd0027985632c90b48b044ba0a010f3ac6b682c6
MD5 37a915cc2f0a7bbf5be23a1433905ee8
BLAKE2b-256 e5bd0354f8e7af9376870c3346750eb7a2696b3fbe210c6e72839e22da399943

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