ismatsamadov/azerbaijani-ner-demo
0
Azerbaijani Named Entity Recognition Demo
A Gradio demo for state-of-the-art Named Entity Recognition (NER) in the Azerbaijani language, powered by a fine-tuned XLM-RoBERTa model. Recognizes 25 entity types including persons, locations, organizations, dates, and more.
Live Demo: IsmatS/azerbaijani-ner-demo
Model: IsmatS/xlm-roberta-az-ner
How to Use
- Enter Azerbaijani text in the input field
- Click Submit
- View recognized entities grouped by type
- Try the built-in example sentences
Model Performance
Entity-Level F1 Scores
Entity Types Recognized
Example Sentences
2014-cu ildə Azərbaycan Respublikasının prezidenti İlham Əliyev Salyanda olub.Bakı şəhərində Azərbaycan Respublikasının prezidenti İlham Əliyev.Shahla Khuduyeva və Pasha Sığorta şirkəti haqqında məlumat.Technical Details
Quick Start (API)
from transformers import AutoTokenizer, AutoModelForTokenClassification, pipeline
model_name = "IsmatS/xlm-roberta-az-ner"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForTokenClassification.from_pretrained(model_name)
ner = pipeline("ner", model=model, tokenizer=tokenizer, aggregation_strategy="simple")
text = "2014-cu ildə Azərbaycan Respublikasının prezidenti İlham Əliyev Salyanda olub."
for entity in ner(text):
print(f"[{entity['entity_group']}] {entity['word']} ({entity['score']:.2f})")Related Resources
- XLM-RoBERTa NER Model
- XLM-RoBERTa Large NER Model
- mBERT NER Model
- Azerbaijani NER Dataset
- Named Entity Recognition Space
Citation
@model{ismats_az_ner_2024,
title={XLM-RoBERTa Azerbaijani NER Model},
author={Ismat Samadov},
year={2024},
publisher={Hugging Face},
url={https://huggingface.co/IsmatS/xlm-roberta-az-ner}
}License
MIT License
