Skip to main content

Uzbek Neural Morphological Analyzer (Transformer Architecture)

Project description

uzmorph-transformer: Uzbek Neural Morphological Analyzer (Transformer Encoder Architecture)

uzmorph-transformer is a state-of-the-art word-level morphological analyzer for the Uzbek language. Unlike sequential RNNs, it uses a Multi-Head Self-Attention (Transformer Encoder) mechanism to capture complex character dependencies.

Performance & Use Case

  • Architecture: Transformer Encoder (Multi-Head Attention).
  • Strength: Exceptional at analyzing very long or complex words (6+ suffixes) where sequential models might lose context. Handles long-range phonological dependencies with high precision.
  • Accuracy: >95% (Scales significantly with complex data).
  • Ideal For: Research-heavy NLP tasks and analyzing complex, highly-agglutinative Uzbek technical or literary texts.

Installation

pip install uzmorph-transformer

Quick Start (Usage Examples)

1. Simple Analysis (String Output)

from uzmorph_transformer.uzmorph_transformer import uzmorph_transformer

analyzer = uzmorph_transformer()
result = analyzer.analyze("kitoblarimizdagilar")
print(result)

# Output:
# Result: 'kitoblarimizdagilar' -> Stem: kitob | POS: NOUN | Tags: [plural=1, possession=1, cases=Locative, plural=1]

2. Structured Data Export

# To Dictionary
data = analyzer.analyze("yozayapmiz").to_dict()

# To JSON
json_out = analyzer.analyze("olma").to_json()

Supported Tags & Features

Part of Speech (POS)

  • NOUN (Ot), VERB (Fe'l), ADJ (Sifat), ADV (Ravish), NUM (Son), PRN (Olmosh).

Grammatical Features

  • Cases: Nominative, Ablative, Accusative, Dative, Genitive, Locative.
  • Possession: 1, 2, 3.
  • Tense: Past, Present, Future.
  • Voice: Causative, Passive, Reciprocal, Reflexive.
  • Mood: Conditional, Imperative, Progressive, Message, Proposal.

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_transformer-0.1.0.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

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

uzmorph_transformer-0.1.0-py3-none-any.whl (1.9 MB view details)

Uploaded Python 3

File details

Details for the file uzmorph_transformer-0.1.0.tar.gz.

File metadata

  • Download URL: uzmorph_transformer-0.1.0.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for uzmorph_transformer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 03b71e49f378420b5f69bf9455dffb80684a74780889cf2397ccda12ea80d152
MD5 0b8888f469c3edc932d0870ffbcaf372
BLAKE2b-256 43468c0f0f3195a8813bf3f4c99684f498c09e83c708d28c988e6f98ed09aafc

See more details on using hashes here.

File details

Details for the file uzmorph_transformer-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for uzmorph_transformer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d7055edf1f5ac58c8c0b7e840b5651afa9411fa37ea8ee54183958886100511
MD5 657f7a7b977c0e62198de56ef1d4472b
BLAKE2b-256 2bedbdcf2725ae381d19b3768662dc9080cbae3e58ff6a5747f6f441980071d8

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