Skip to main content

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}]

Metadata

Release files for uzbek-mwe-tokenizer 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uzbek-mwe-tokenizer 0.1.0
File Size Uploaded Provenance Actions
uzbek_mwe_tokenizer-0.1.0.tar.gz 4.1 kB Without provenance Details for uzbek_mwe_tokenizer-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for uzbek-mwe-tokenizer 0.1.0
File Interpreter ABI Platform Actions
uzbek_mwe_tokenizer-0.1.0-py3-none-any.whl Python 3 none any Details for uzbek_mwe_tokenizer-0.1.0-py3-none-any.whl

Total release size: 8.6 kB

Release files / uzbek_mwe_tokenizer-0.1.0.tar.gz

Download URL uzbek_mwe_tokenizer-0.1.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d29141b76e69c832725b36abcaea28c167f45722c18e24d84f7a34cdb6ea90e7
BLAKE2b-256 checksum
How to use checksums
6446a1bde67b5388dd2a23209ebbac4748f46e333947f82d8453e9b5bba2fa60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / uzbek_mwe_tokenizer-0.1.0-py3-none-any.whl

Download URL uzbek_mwe_tokenizer-0.1.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2923cef518b748f2127717a83197d54b5b127f74ee8b77632b54cd5dbc33fe0
BLAKE2b-256 checksum
How to use checksums
67374ab02c549d9e296d45aa520eac9ed54e21cbc9f09275c9ce19554663c45f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Security for uzbek-mwe-tokenizer 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page