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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03b71e49f378420b5f69bf9455dffb80684a74780889cf2397ccda12ea80d152
|
|
| MD5 |
0b8888f469c3edc932d0870ffbcaf372
|
|
| BLAKE2b-256 |
43468c0f0f3195a8813bf3f4c99684f498c09e83c708d28c988e6f98ed09aafc
|
File details
Details for the file uzmorph_transformer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: uzmorph_transformer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 1.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d7055edf1f5ac58c8c0b7e840b5651afa9411fa37ea8ee54183958886100511
|
|
| MD5 |
657f7a7b977c0e62198de56ef1d4472b
|
|
| BLAKE2b-256 |
2bedbdcf2725ae381d19b3768662dc9080cbae3e58ff6a5747f6f441980071d8
|