uzmorph-nn: Uzbek Neural Morphological Analyzer
uzmorph-nn is a high-accuracy word-level morphological analyzer for the Uzbek language based on a character-level Bidirectional LSTM (BiLSTM) architecture.
Role & Performance
This package provides a robust foundation for Uzbek NLP tasks. It is specifically optimized for:
- Agglutinative Processing: Efficiently decomposes long chains of suffixes.
- Phonological Awareness: Handles stem changes (allomorphy) and vowel/consonant harmony correctly.
- Rule-Augmented Deep Learning: Built on 100,000+ rules from the Common Stem Expansion (CSE) framework.
Installation
pip install uzmorph-nn
Quick Start & Usage Examples
1. Basic Analysis (String Output)
Great for quick debugging or readable logs.
from uzmorph_nn import uzmorph_nn
# Initialize the analyzer
analyzer = uzmorph_nn()
# Analyze a word
result = analyzer.analyze("maktabimizda")
print(result)
# Output:
# Result: 'maktabimizda' -> Stem: maktab | POS: NOUN | Tags: [possession=1, cases=Locative, plural=1]
2. Structured Data (Dictionary)
Ideal for integrating into other projects or data processing pipelines.
result = analyzer.analyze("kitobim")
data = result.to_dict()
print(data)
# Output:
# {
# "word": "kitobim",
# "stem": "kitob",
# "pos": "NOUN",
# "possession": "1"
# }
3. API Integration (JSON Output)
Useful for web services or sending data between different languages.
result = analyzer.analyze("yozayapmiz")
print(result.to_json())
# Output:
# {
# "word": "yozayapmiz",
# "stem": "yoz",
# "pos": "VERB",
# "aspect": "Progressive",
# "person": "1",
# "number": "Plural"
# }
4. Direct Attribute Access
Access specific parts of the analysis directly.
result = analyzer.analyze("olmalar")
print(f"Stem: {result.stem}") # Stem: olma
print(f"POS: {result.pos}") # POS: NOUN
print(f"Features: {result.features}") # Features: ['plural=1']
Architecture Details
- Input: Character sequence (UTF-8).
- Architecture: 2-layer Bidirectional LSTM.
- Tagging Strategy: BIO (Beginning, Inside, Outside) sequence labeling.
- Weights: Pre-trained on a comprehensive CSE rule-engine dataset.
License
MIT License. Free for academic and commercial use.
Metadata
Release files for uzmorph-nn 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| uzmorph_nn-0.1.0.tar.gz | 1.0 MB | Without provenance | Details for uzmorph_nn-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| uzmorph_nn-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for uzmorph_nn-0.1.0-py3-none-any.whl |
Total release size: 2.0 MB
Release files / uzmorph_nn-0.1.0.tar.gz
| Download URL | uzmorph_nn-0.1.0.tar.gz |
|---|---|
| Size | 1.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5a5f0196527726ddcbc33efe7abb38d18ce86e7b463157fea2708fdfdf4b54e
|
|
BLAKE2b-256 checksum How to use checksums |
fe213b71f046950afc5e90970062232554363145c8b5572f18dedec30189b726
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.0
|
Release files / uzmorph_nn-0.1.0-py3-none-any.whl
| Download URL | uzmorph_nn-0.1.0-py3-none-any.whl |
|---|---|
| Size | 1.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cce2474cd810f91e9311ab50a214db7700a53c84d704b289ff6c9b8d1e67b3b3
|
|
BLAKE2b-256 checksum How to use checksums |
85803ecaeb91b9c349506c901a7084ede16d4b74c22af4276c51087fb5a6a4b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.0
|
Security for uzmorph-nn 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.