Uzbek Neural Morphological Analyzer (BiGRU Architecture)
Project description
uzmorph-bigru: Uzbek Neural Morphological Analyzer (BiGRU Architecture)
uzmorph-bigru is a 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.1.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.1-py3-none-any.whl
(844.6 kB
view details)
File details
Details for the file uzmorph_bigru-0.1.1.tar.gz.
File metadata
- Download URL: uzmorph_bigru-0.1.1.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 |
f6669f2cdaa14899adf869193d09a7593fa0489822070eead981581c32ae72e0
|
|
| MD5 |
fe56b7af8d418928580074402b026288
|
|
| BLAKE2b-256 |
8c400c7242027dbfe00c4483a109c57ab4b443fa192a44c6e0e96105d574ce4f
|
File details
Details for the file uzmorph_bigru-0.1.1-py3-none-any.whl.
File metadata
- Download URL: uzmorph_bigru-0.1.1-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 |
e04c5b28962d81ed6e62338b6d3257e502a06ccf15cbf5996ea642d9143a205e
|
|
| MD5 |
2a9d2fc48c1c2c4710d44bebc874e870
|
|
| BLAKE2b-256 |
1682f8c7ff3f2127783ad32c4cf359a5a1b9256c634445156499b1cac369b8e5
|