Downloads · 30 days
9
3% of all-time downloads
MaksudSharipov/Uzbek-POS-Tagger-TahrirchiBERT
Uzbek-POS-Tagger-TahrirchiBERT is a token classification model from MaksudSharipov. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as apache-2.0.
This model is a Part-of-Speech (POS) tagger for Uzbek fine-tuned from tahrirchi/tahrirchi-bert-base using the Hugging Face Transformers library. It predicts one POS label per token (token classification).
Downloads · 30 days
9
3% of all-time downloads
All-time downloads
329
Public
Parameters
109M
436 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors436 MB · 99%
From the Hugging Face model README
This model is a Part-of-Speech (POS) tagger for Uzbek fine-tuned from tahrirchi/tahrirchi-bert-base using the Hugging Face Transformers library. It predicts one POS label per token (token classification).
uz)tahrirchi/tahrirchi-bert-baseNote: The model is a standard token-classification fine-tune (no additional decoding layers).
The model predicts the following 16 POS tags:
ADJ, ADP, ADV, AUX, CCONJ, INTJ, MOD, NOUN, NUM, PART, PRON, PROPN, PUNCT, SCONJ, SYM, VERB
label2id / id2label mappings were created from the sorted unique tag list found in the dataset.
The model was trained on a custom Uzbek POS dataset provided as a plain text file:
word/TAG formMen/PRON bugun/ADV Toshkentga/PROPN bordim/VERB ./PUNCTTraining used 5-fold cross-validation (KFold(n_splits=5, shuffle=True, random_state=42)).
For each fold, the base model was reloaded and fine-tuned from scratch for that split. The best fold by validation F1 was saved.
metric_for_best_model="f1", load_best_model_at_end=True-100)Best reported validation performance (Fold 4):
precision recall f1-score support
ADJ 0.97 0.97 0.97 1075
ADP 0.97 0.97 0.97 465
ADV 0.95 0.95 0.95 398
AUX 1.00 0.98 0.99 177
CCONJ 1.00 0.98 0.99 389
INTJ 0.96 0.97 0.97 114
MOD 0.97 0.99 0.98 138
NOUN 0.98 0.98 0.98 4195
NUM 0.98 0.99 0.98 315
PART 0.97 0.93 0.95 99
PRON 0.99 0.99 0.99 719
PROPN 0.92 0.95 0.93 340
PUNCT 1.00 1.00 1.00 1916
SCONJ 0.98 0.99 0.98 122
SYM 0.97 0.98 0.98 195
VERB 0.99 0.98 0.98 2150
accuracy 0.98 12807
macro avg 0.97 0.98 0.97 12807
weighted avg 0.98 0.98 0.98 12807
These numbers are from one validation split (fold) in cross-validation. Real-world performance may vary depending on domain, spelling quality, and text style.
pipelinefrom transformers import pipeline
model_id = "<your-username>/<your-repo-name>"
tagger = pipeline(
"token-classification",
model=model_id,
tokenizer=model_id,
aggregation_strategy="simple"
)
text = "Men bugun Toshkentga bordim."
preds = tagger(text)
for p in preds:
print(p["word"], p["entity_group"], float(p["score"]))
MOD tag may not map 1:1 to Universal Dependencies (UD) conventions depending on dataset annotation guidelines.This model is released under the Apache License 2.0.