kamranibiyev/azNER-xlmr
azwikiner-xlmr
Named entity recognition for Azerbaijani: XLM-RoBERTa base fine-tuned on azWikiNER, a manually corrected corpus of 16,740 Azerbaijani Wikipedia segments with 16 entity categories. Trained in April 2021; construction and evaluation are described in Ibiyev & Novák, TSD 2021 (doi:10.1007/978-3-030-83527-9_26) and in the author's PhD dissertation (PPKE ITK, 2026).
Entity categories
CARDINAL, EVENT, FAC, GPE, LOC, MONEY, NORP, ORDINAL, ORG, PER, PERCENT, PROD, QUANTITY, TIME, WORKOFART, and TITLE (professions, roles and military ranks attached to person names, e.g. aktyor 'actor', şair 'poet'). TIME covers both times and dates; PROD corresponds to OntoNotes PRODUCT. The classifier head has two vestigial classes that do not occur in practice: an interim OTHER label (one training span) and an empty label inherited from a trailing newline in the label file.
Results
Entity-level scores on the azWikiNER test set (1,618 segments), computed with the standard conlleval script:
Per-type F1 on the test set (full tagset):
Training
Fine-tuned with the token-classification example of transformers 4.5.0 on 4 GPUs: AdamW, learning rate 1e-4 with linear decay, no warmup, no weight decay, per-device batch size 8 (effective 32), mixed precision (fp16), seed 42, 6 epochs. Splits: 13,483 train / 1,639 dev / 1,618 test segments. The full training configuration is included in this repository as training_args.bin.
Usage
from transformers import pipeline
ner = pipeline("ner", model="kamranibiyev/azwikiner-xlmr", aggregation_strategy="simple")
ner("Elnur Hüseynov Bakıda anadan olub.")Limitations
The training text comes from Wikipedia; expect lower accuracy on other genres. The numeric and date-like categories entered the corpus through a zero-shot OntoNotes pass with rule-based merging rather than span-by-span human verification, so scores on those types should be read with care. Long inputs are truncated at the tokenizer limit. There is no DATE tag; dates fall under TIME.
Citation
@inproceedings{ibiyev2021azwikiner,
author = {Kamran Ibiyev and Attila Nov{\'a}k},
title = {Using Zero-Shot Transfer to Initialize azWikiNER, a Gold
Standard Named Entity Corpus for the Azerbaijani Language},
booktitle = {Text, Speech, and Dialogue (TSD 2021)},
pages = {305--317},
publisher = {Springer},
year = {2021},
doi = {10.1007/978-3-030-83527-9_26},
}Dataset: https://doi.org/10.5281/zenodo.22019336
