Uzbek Morphological Analyzer (BiGRU Architecture)
Project description
uzmorph-bigru: Efficient Uzbek Morphological Analyzer (BiGRU)
uzmorph-bigru is an efficient and high-accuracy word-level morphological analyzer for the Uzbek language. It leverages the Bidirectional Gated Recurrent Unit (BiGRU) architecture to offer a lighter yet powerful alternative to standard LSTMs.
Performance & Use Case
- Architecture: Bidirectional GRU (2 Layers, 128 hidden units).
- Efficiency: Approximately 20% faster inference and 15% smaller model size (~0.9MB) compared to BiLSTM.
- Accuracy: >96% on common word sets.
- Ideal For: Mobile applications or environments with limited memory where high throughput is required.
Installation
pip install uzmorph-bigru
Quick Start (Usage Examples)
1. Simple Analysis (String Output)
from uzmorph_bigru.uzmorph_bigru import uzmorph_bigru
analyzer = uzmorph_bigru()
result = analyzer.analyze("kitobim")
print(result)
# Output:
# Result: 'kitobim' -> Stem: kitob | POS: NOUN | Tags: [possession=1, singular=1]
2. Structured Data (Dict/JSON)
# To Dictionary
data = analyzer.analyze("maktabda").to_dict()
# { "word": "maktabda", "stem": "maktab", "pos": "NOUN", "cases": "Locative" }
# To JSON
json_string = analyzer.analyze("yozyapmiz").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(Mening),2(Sening),3(Uning). - Number:
singular=1,plural=1. - Verb Specific:
- Tense:
Past(O'tgan),Present(Hozirgi),Future(Kelasi). - Voice:
Causative,Passive,Reciprocal,Reflexive. - Mood/Impulsion:
Imperative,Conditional,Proposal.
- Tense:
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
uzmorph_bigru-0.1.0.tar.gz
(846.6 kB
view details)
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
uzmorph_bigru-0.1.0-py3-none-any.whl
(844.6 kB
view details)
File details
Details for the file uzmorph_bigru-0.1.0.tar.gz.
File metadata
- Download URL: uzmorph_bigru-0.1.0.tar.gz
- Upload date:
- Size: 846.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74c3fd45de8c064702a94459a1844ec5e3cb10c5fd63cb718a708ee12b57992d
|
|
| MD5 |
f5ca6f1769b16b2c70ebeaf5c6382816
|
|
| BLAKE2b-256 |
9ae99cf201b8787d1954a3ac4aa2890b1405f2e18e558856e5f3766c636546f9
|
File details
Details for the file uzmorph_bigru-0.1.0-py3-none-any.whl.
File metadata
- Download URL: uzmorph_bigru-0.1.0-py3-none-any.whl
- Upload date:
- Size: 844.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0736ec7830253d7ffa7435edb623c910467b1f4adea1792a0b6207beadfdeeb
|
|
| MD5 |
eedb95c685618ff2612746ee36615b8c
|
|
| BLAKE2b-256 |
9bb51876e1acae4feb1497ad40652f0d3113120e29d9f9f711735b2dfe51d471
|