Downloads · 30 days
14
1% of all-time downloads
risqaliyevds/xlm-roberta-large-ner
xlm-roberta-large-ner is a token classification model from risqaliyevds. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as mit.
This model is designed for Named Entity Recognition (NER) in Uzbek text. The model can identify various categories of named entities, including persons, places, organizations, dates, and more. This model is based on t…
Downloads · 30 days
14
1% of all-time downloads
All-time downloads
1.2K
Public
Parameters
559M
2.3 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors2.2 GB · 99%
From the Hugging Face model README
This model is designed for Named Entity Recognition (NER) in Uzbek text. The model can identify various categories of named entities, including persons, places, organizations, dates, and more. This model is based on the XLM-RoBERTa large architecture.
The model is trained on the NEWS dataset and primarily has high accuracy for identifying NER in NEWS texts.
The model can identify the following NER categories:
To demonstrate how the model works, here are a few examples:
from transformers import pipeline, AutoTokenizer, AutoModelForTokenClassification
model_name_or_path = "risqaliyevds/xlm-roberta-large-ner"
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path)
model = AutoModelForTokenClassification.from_pretrained(model_name_or_path).to("cuda")
nlp = pipeline("ner", model=model, tokenizer=tokenizer)
text = "Shavkat Mirziyoyev Rossiyada rasmiy safarda bo'ldi."
ner = nlp(text)
for entity in ner:
print(entity)
Example text: "Shavkat Mirziyoyev Rossiyada rasmiy safarda bo'ldi."
Results:
[{'entity': 'B-PERSON', 'score': 0.88995147, 'index': 1, 'word': '▁Shavkat', 'start': 0, 'end': 7},
{'entity': 'I-PERSON', 'score': 0.980681, 'index': 2, 'word': '▁Mirziyoyev', 'start': 8, 'end': 18},
{'entity': 'B-GPE', 'score': 0.8208886, 'index': 3, 'word': '▁Rossiya', 'start': 19, 'end': 26}]
To download and use the model from the Hugging Face platform, you can use the following code:
from transformers import pipeline, AutoTokenizer, AutoModelForTokenClassification
model_name_or_path = "risqaliyevds/xlm-roberta-large-ner"
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path)
model = AutoModelForTokenClassification.from_pretrained(model_name_or_path).to("cuda")
nlp = pipeline("ner", model=model, tokenizer=tokenizer)
If you have any questions or need more information, please contact us. LinkedIn: Riskaliev Murad
This model is provided as open source and is available for free use by all users.
The NER model for the Uzbek language is effective in identifying various named entities in texts. The high accuracy and wide range of categories make it useful for academic research, document analysis, and many other fields.