Views
No views yet
MutazYoune/ARAB_BERT and has been trained to identify and classify named entities in Arabic text.1from transformers import AutoTokenizer, AutoModelForTokenClassification, pipeline
2
3# Load model and tokenizer
4tokenizer = AutoTokenizer.from_pretrained("MutazYoune/Arabic-NER-PII2")
5model = AutoModelForTokenClassification.from_pretrained("MutazYoune/Arabic-NER-PII2")
6
7# Create NER pipeline
8ner_pipeline = pipeline("ner",
9 model=model,
10 tokenizer=tokenizer,
11 aggregation_strategy="simple")
12
13# Example usage
14text = "أحمد محمد يعمل في شركة جوجل في الرياض"
15entities = ner_pipeline(text)
16print(entities)1@misc{arabic-ner-bert,
2 title={Arabic BERT NER Model},
3 author={Trained on Kaggle},
4 year={2025},
5 publisher={Hugging Face},
6 url={https://huggingface.co/MutazYoune/Arabic-NER-PII2}
7}