Downloads · 30 days
24
14% of all-time downloads
thejosango/nuha-ajp-mlm
nuha-ajp-mlm is a fill-mask model from thejosango. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as apache-2.0.
nuha-ajp-mlm is an Arabic BERT model pre-trained from scratch on Jordanian social media text using masked language modelling (MLM). It serves as the domain-adapted base for the NUHA classifier family — nuha-ajp-binary…
Downloads · 30 days
24
14% of all-time downloads
All-time downloads
172
Public
Parameters
99.5M
3.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.bin398 MB · 50%
From the Hugging Face model README
nuha-ajp-mlm is an Arabic BERT model pre-trained from scratch on Jordanian social media text using masked language modelling (MLM). It serves as the domain-adapted base for the NUHA classifier family — nuha-ajp-binary and nuha-ajp-trinary — and was developed as part of a pilot proof-of-concept for the NUHA project by the Jordan Open Source Association (JOSA).
Starting from a fresh vocabulary trained on the NUHA corpus rather than fine-tuning an existing Arabic BERT, the model is adapted to the vocabulary and linguistic patterns of colloquial Jordanian Arabic social media text.
nuha-ajp-mlm can be used for masked token prediction on Arabic social media text, or as a base model for fine-tuning downstream Arabic NLP tasks — particularly those involving informal Jordanian or Levantine Arabic.
from transformers import pipeline
fill_mask = pipeline("fill-mask", model="thejosango/nuha-ajp-mlm")
results = fill_mask("هذه المرأة [MASK] جداً")
for r in results:
print(r["token_str"], r["score"])
The primary intended downstream use is fine-tuning for hate speech and gender-based violence detection using the NUHA dataset, as demonstrated by nuha-ajp-binary and nuha-ajp-trinary.
This model was pre-trained on a relatively small, domain-specific corpus of Jordanian social media comments. It is not suitable as a general-purpose Arabic language model and should not be used as a replacement for models trained on broader Arabic corpora (e.g. for MSA tasks, translation, or summarisation).
Pre-trained on the text portion of the thejosango/nuha-ajp-dataset — a corpus of Arabic social media comments collected from Jordanian platforms. The binary dataset split was used for pre-training (text only, labels ignored).
BertForMaskedLM), 12 layers, 12 attention heads, 768 hidden size[URL] as an added special token| Epoch | Validation Loss |
|---|---|
| 1 | 8.435 |
| 5 | 7.296 |
| 10 | 6.499 |
| 15 | 6.118 |
| 20 | 5.863 |
| 25 | 5.788 |
This model was developed as part of an initial pilot study. It is intended as a stepping stone for the downstream NUHA classifiers rather than as a general-purpose Arabic language model.