This is one of six checkpoints from a controlled three-seed study of full fine-tuning versus LoRA on an isolated-word Tajik part-of-speech (POS) classification task. The model assigns one of 28 Tajik POS categories to a word form in Tajik Cyrillic script.
This is not contextual sequence tagging. The model does not receive sentence context, so grammatical ambiguity may not be resolvable.
bert-base-multilingual-cased2024 (shared with the corresponding other method)TajikNLPWorld/tajik-pos-corpusTajikNLPWorld/TajikMorphCorpusThe following are actual test results for this checkpoint, loaded from the completed experiment metadata, not training-set scores.
| Evaluation | Number of examples | Accuracy | Macro-F1 | Weighted-F1 |
|---|---|---|---|---|
| In-domain test (28 POS labels) | 5,259 | 0.7600 | 0.3683 | 0.7566 |
| In-domain test (9 shared labels; masked logits) | 4,235 | 0.7263 | 0.3956 | 0.7247 |
| External TajikMorphCorpus (9 mapped labels) | 2,592 | 0.2793 | 0.1555 | 0.3071 |
| External unseen-word subset (9 mapped labels) | 2,289 | 0.2757 | 0.1544 | 0.3084 |
Across the three paired random seeds (42, 123, 2024), LoRA (PEFT) obtained in-domain 28-class mean macro-F1 0.3835 ± 0.0252 (sample standard deviation).
For the 9-label settings, the evaluation first retains examples with an in-scope gold label and then restricts the prediction to the same nine classes by masking all other class logits. The 9-label and 28-label Macro-F1 scores are not directly interchangeable.
The external data use an automatically mapped and filtered set of nine categories. The cross-corpus mapping still requires independent linguistic validation. "Unseen" denotes word forms absent from the entire main corpus, not just its training partition. Strong domain shift and rare categories limit external performance; this checkpoint is not claimed to solve general Tajik POS tagging.
Source revisions recorded for reproducibility:
3f076fdb1ab68d5b2880cb87a0886f315b8146f8797ea46fe95cf086832a500bea0582001368b7a8b29f8230724ee4d305423e46691f65dd2f422120import json
import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification, set_seed
from peft import PeftModel
from huggingface_hub import hf_hub_download
repo_id = "TajikNLPWorld/tajik-mbert-pos-lora-seed2024"
base_id = "bert-base-multilingual-cased"
set_seed(2024)
with open(hf_hub_download(repo_id, "labels.json"), encoding="utf-8") as f:
labels = json.load(f)["labels"]
base = AutoModelForSequenceClassification.from_pretrained(
base_id,
revision='3f076fdb1ab68d5b2880cb87a0886f315b8146f8',
num_labels=len(labels),
id2label={i: label for i, label in enumerate(labels)},
label2id={label: i for i, label in enumerate(labels)},
)
model = PeftModel.from_pretrained(base, repo_id).eval()
tokenizer = AutoTokenizer.from_pretrained(repo_id)
word = "китоб"
inputs = tokenizer(word, return_tensors="pt", truncation=True, max_length=64)
with torch.inference_mode():
predicted_id = model(**inputs).logits.argmax(-1).item()
print(labels[predicted_id])
The output label is in Tajik and follows the original 28-class dataset ontology. The model accepts isolated word forms; applying it word-by-word to a full sentence does not make it a context-aware POS tagger.
labels.json: ordered 28-label vocabulary in the original Tajik labels.metadata/completed.json: metrics, original split fingerprints, settings.metadata/roundtrip_audit.json: evidence for exact restored parameters.metadata/manifest_v3.json: pinned experimental metadata.reports/perclass_*.csv: per-class validation of main/external results.This model is part of an ongoing Tajik NLP research program. A related earlier preprint used a different lexical corpus and is not the paper reporting the above six-model experiment:
The present controlled-experiment manuscript has not been assigned a publication URL or DOI in this model card. Please cite the specific model repository and its revision until a paper for these results is released.
Model weights are published by the uploader under Apache-2.0; the original pretrained mBERT and the main corpus are also distributed under Apache-2.0. The original dataset may be gated for access.
google-bert/bert-base-multilingual-cased