Downloads · 30 days
24
0% of all-time downloads
MostafaAhmed98/AraBert-Arabic-NER-CoNLLpp
AraBert-Arabic-NER-CoNLLpp is a token classification model from MostafaAhmed98. 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.
Downloads · 30 days
24
0% of all-time downloads
All-time downloads
7.5K
Public
Parameters
135M
538 MB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors538 MB · 100%
From the Hugging Face model README
Model Name: AraBERT-NER
Model Type: AraBERT (Pre-trained on Arabic text and fine-tuned on Arabic Named Entity Recognition task)
Language: Arabic
License: MIT
Model Creator: Mostafa Ahmed
Contact Information: [email protected]
Model Version: 1.0
AraBERT-NER is a fine-tuned version of the AraBERT model specifically designed for Named Entity Recognition (NER) tasks in Arabic. The model has been trained to identify and classify named entities such as persons, organizations, locations and MISC and more within Arabic text. This makes it suitable for various applications such as information extraction, document categorization, and data annotation in Arabic.
The model is intended for use in:
The model was fine-tuned on the CoNLL-NER-AR dataset.
Data Sources:
The model was trained using the Hugging Face transformers library. The training process involved:
The model was evaluated on a held-out test set from the CoNLL-NER-AR dataset. Here are the key performance metrics:
These metrics indicate the model's effectiveness in accurately identifying and classifying named entities in Arabic text.
You can load and use the model with the Hugging Face transformers library as follows:
from transformers import AutoTokenizer, AutoModelForTokenClassification
from transformers import pipeline
tokenizer = AutoTokenizer.from_pretrained("MostafaAhmed98/AraBert-Arabic-NER-CoNLLpp")
model = AutoModelForTokenClassification.from_pretrained("MostafaAhmed98/AraBert-Arabic-NER-CoNLLpp")
# Create a NER pipeline
ner_pipeline = pipeline("ner", model=model, tokenizer=tokenizer)
# Example usage
text = "ولد محمد علي في القاهرة وعمل في شركة مايكروسوفت."
ner_results = ner_pipeline(text)
for entity in ner_results:
print(f"Entity: {entity['word']}, Label: {entity['entity']}, Confidence: {entity['score']:.2f}")