Transformer-based intelligent model for identifying multi-word lexical units in Uzbek.
Project description
Uzbek MWE Tokenizer
This package identifies Multi-Word Expressions (MWEs) in Uzbek language texts using a transformer-based intelligent model (UzBERT).
Citation Requirement
If you use this model in your research or project, please cite the following paper:
Sharipov, M. S. (2026). Transformer-based intelligent model for identifying multi-word lexical units and reducing syntactic ambiguities in Uzbek language texts. Bulletin of TUIT: Management and Communication Technologies, 2(14), 103-107. DOI: 10.61663/262tuitmct14
Havola: https://uzjurnal.uz/2/2026/2/index?issue=14
Installation
pip install uzbek-mwe-tokenizer
Usage
You can use the model for both Latin (lot) and Cyrillic (cyr) texts.
Example in Cyrillic
from uzbek_mwe_tokenizer import UzbekMWETokenizer
# Initialize tokenizer in Cyrillic mode
tokenizer = UzbekMWETokenizer(mode="cyr")
sentences = [
"Натижани кўриб, ҳамма ўқувчиларнинг бирданига тарвузи қўлтиғидан тушди.",
"Қоронғи хонада унинг қаттиқ капалаги учди, гўё ерга кирса, қулоғидан тортиб чиқарадиган ҳолат эди.",
"Рақибларимизни кўриб бизнинг асло тепа сочимиз тик бўлмади."
]
for gap in sentences:
print("Gap:", gap)
mwes = tokenizer.extract_mwe(gap)
print("Topilgan MWE'lar:", mwes)
print("-" * 50)
Kutilayotgan Natija (Expected Output):
Gap: Натижани кўриб, ҳамма ўқувчиларнинг бирданига тарвузи қўлтиғидан тушди.
Topilgan MWE'lar: [{'mwe': 'тарвузи қўлтиғидан тушди', 'confidence': 100.0}]
--------------------------------------------------
Gap: Қоронғи хонада унинг қаттиқ капалаги учди, гўё ерга кирса, қулоғидан тортиб чиқарадиган ҳолат эди.
Topilgan MWE'lar: [{'mwe': 'капалаги учди', 'confidence': 100.0}, {'mwe': 'ерга кирса', 'confidence': 76.0}, {'mwe': 'қулоғидан тортиб чиқарадиган', 'confidence': 99.0}]
--------------------------------------------------
Gap: Рақибларимизни кўриб бизнинг асло тепа сочимиз тик бўлмади.
Topilgan MWE'lar: [{'mwe': 'тепа сочимиз тик бўлмади', 'confidence': 100.0}]
--------------------------------------------------
Example in Latin
The package automatically transliterates text to Cyrillic for the model and translates the output back to Latin.
from uzbek_mwe_tokenizer import UzbekMWETokenizer
# Initialize tokenizer in Latin mode
tokenizer = UzbekMWETokenizer(mode="lot")
text = "Natijani ko'rib, hamma o'quvchilarning birdaniga tarvuzi qo'ltig'idan tushdi."
mwes = tokenizer.extract_mwe(text)
print(mwes)
Kutilayotgan Natija (Expected Output):
[{'mwe': "tarvuzi qo'ltig'idan tushdi", 'confidence': 100.0}]
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 uzbek_mwe_tokenizer-0.1.0.tar.gz.
File metadata
- Download URL: uzbek_mwe_tokenizer-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d29141b76e69c832725b36abcaea28c167f45722c18e24d84f7a34cdb6ea90e7
|
|
| MD5 |
d263fd314467b47e49e4d16dde0b782f
|
|
| BLAKE2b-256 |
6446a1bde67b5388dd2a23209ebbac4748f46e333947f82d8453e9b5bba2fa60
|
File details
Details for the file uzbek_mwe_tokenizer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: uzbek_mwe_tokenizer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2923cef518b748f2127717a83197d54b5b127f74ee8b77632b54cd5dbc33fe0
|
|
| MD5 |
7b0d9b375738478908e419c4fd7e8bf9
|
|
| BLAKE2b-256 |
67374ab02c549d9e296d45aa520eac9ed54e21cbc9f09275c9ce19554663c45f
|