Downloads · 30 days
0
Muhsabrys/AMWAL_ArFinNER
AMWAL_ArFinNER is a token classification model from Muhsabrys. Use it when you need labels on individual words, such as names. It is set up for spacy. The card lists the license as apache-2.0.
This model is described in the following paper:
Downloads · 30 days
0
Access
Public
Updated Dec 27, 2025
Repo size
46.8 MB
Likes
1
Public
Click a slice to open those files.
Other34.4 MB · 73%
From the Hugging Face model README
This model is described in the following paper:
AMWAL: Named Entity Recognition for Arabic Financial News
Muhammad S. Abdo, Yash Hatekar, Damir Cavar
ACL Anthology: https://aclanthology.org/2025.finnlp-1.20
pip install git+https://huggingface.co/Muhsabrys/AMWAL_ArFinNER
from amwal import load_ner
ner = load_ner()
text = "يطرح البنك المركزي المصري، بعد غد، سندات خزانة ثابتة ومتغيرة العائد بقيمة 45 مليار جنيه"
result = ner(text)
print(result["entities"])
AMWAL is a spaCy-based Named Entity Recognition (NER) system designed for extracting financial entities from Arabic text, with a primary focus on Arabic financial news and reports.
The model addresses challenges specific to Arabic financial NLP, including orthographic variation, domain-specific terminology, and the scarcity of annotated financial resources for Arabic.
AMWAL is intended for:
It is not intended for:
A specialized Arabic financial corpus was constructed from three major Arabic financial newspapers, covering the period 2000–2023.
The annotation process followed a semi-automatic workflow:
The final dataset contains:
Entity categories were standardized using concepts from the Financial Industry Business Ontology (FIBO, 2020) to ensure conceptual consistency and compatibility with structured financial representations.
The model was trained on the annotated corpus using spaCy’s NER pipeline. To mitigate sparsity caused by Arabic orthographic variation, normalization was applied consistently during training and inference.
The following normalization steps are applied internally during inference, matching the training setup:
Removal of all diacritics
Character normalization:
إ, أ, آ → اؤ, ئ → ءة → هى → يThe original input text is always preserved and returned as raw_text.
The model recognizes 21 financial entity types, including (but not limited to):
COUNTRYCITYCURRENCYFINANCIAL_INSTRUMENTBANKORGANIZATIONNATIONALITYEVENTTIMEQUANTITY_OR_UNITThe model was evaluated on a held-out test set using standard NER metrics:
| Metric | Score |
|---|---|
| Precision | 96.08% |
| Recall | 95.87% |
| F1-score | 95.97% |
These results are competitive with reported financial NER systems in other languages, despite the additional challenges posed by Arabic morphology and orthography.
AMWAL supports two officially supported usage modes.
pip (recommended)pip install git+https://huggingface.co/Muhsabrys/AMWAL_ArFinNER
from amwal import load_ner
ner = load_ner()
result = ner("يطرح البنك المركزي المصري، بعد غد، سندات خزانة ثابتة ومتغيرة العائد بقيمة 45 مليار جنيه")
print(result["entities"])
[{'text': 'البنك المركزي المصري', 'label': 'BANK', 'start': 5, 'end': 25}, {'text': 'سندات', 'label': 'FINANCIAL_INSTRUMENT', 'start': 35, 'end': 40}, {'text': '45 مليار', 'label': 'QUNATITY_OR_UNIT', 'start': 74, 'end': 82}, {'text': 'جنيه', 'label': 'CURRENCY', 'start': 83, 'end': 87}]
from huggingface_hub import snapshot_download
import sys
repo_path = snapshot_download("Muhsabrys/AMWAL_ArFinNER")
sys.path.append(repo_path)
from amwal import load_ner
ner = load_ner(local_path=repo_path)
result = ner("الصادرات البترولية المصرية ترتفع إلى 3.6 مليار دولار خلال 9 أشهر")
print(result["entities"])
{
"entities_in_order": [
{
"text": "الصادرات",
"label": "Events",
"start": 1,
"end": 9
},
{
"text": "البتروليه",
"label": "PRODUCT_OR_SERVICE",
"start": 10,
"end": 19
},
{
"text": "المصريه",
"label": "NATIONALITY",
"start": 20,
"end": 27
},
{
"text": "ترتفع",
"label": "Events",
"start": 28,
"end": 33
},
{
"text": "مليار",
"label": "QUNATITY_OR_UNIT",
"start": 42,
"end": 47
},
{
"text": "دولار",
"label": "CURRENCY",
"start": 48,
"end": 53
}
]
}
Planned future directions include:
@inproceedings{abdo2025amwal,
title={AMWAL: Named Entity Recognition for Arabic Financial News},
author={Abdo, Muhammad S and Hatekar, Yash and {\'C}avar, Damir},
booktitle={Proceedings of the Joint Workshop of the 9th Financial Technology and Natural Language Processing (FinNLP), the 6th Financial Narrative Processing (FNP), and the 1st Workshop on Large Language Models for Finance and Legal (LLMFinLegal)},
pages={207--213},
year={2025}
}